How to execute a function one time after the tview.Application has completed the initialization?
Author: FJuedesOrclCreated Nov 27, 2023Updated Aug 7, 2026
Hi Friends,
not an issue, but an interesting question:
- Writing an application that reads data from a Database, allows the User to edit the data and writes it back
- The initial step is obviously loading the Data from the Database and instead of printing progress messages to os.Stderr i like to »write« those messages as rows into a table object.
- That means, the application must have finished all of its initialization and the initial draw() of all the components.
- I tried to use
gv_App.QueueUpdate(LoadAll_Data)but that call never returns - I tried to use
gv_App.QueueUpdate(func(){go LoadAll_Data()})but that call never returns - I also tried to leverage the
gv_App.SetAfterDrawFunc()but that caused the application to hang
Any ideas?
Source: rivo/tview