Re: Initializing the GUI from a different thread

Michael Behrisch <[email protected]>
Newsgroups gmane.comp.lib.fox-toolkit.user
Message-ID <[email protected]>
Hi Wuping, all

Am 01.03.22 um 14:29 schrieb Wuping Xin:
> Another question - do you use Python to spawn the threads (FxApp, 
> FxMainWindow)?

No, all threading is done in C++ using FXThreads.

>> Does the FxApp instance get created/initiated/run in the SAME thread 
>> as the MainWindow instance?  If they are created in different threads 
>> (different thread context), then it won't work (due to the fact that 
>> on Windows, each thread has its own message queue).

Yes, everything in the same thread, unless there is some hidden 
initializiation happening when I create my FXThread. I create the app 
object, the window object and do app.run() in the run() method of the 
FXThread I create.

Best regards,
Michael


_______________________________________________
Foxgui-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/foxgui-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.