Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does the Win32 port support threading?

port support threading Win32
0
10 Posted

Does the Win32 port support threading?

0

More or less. The current (and unlikely to change) status of threads on win32 is that you basically can’t perform gui operations from a subthread, even with gdk_threads_enter/leave (and any GTK or GDK call should be considered a “gui operation”). Essentially, the X11 and win32 gui/threading models are different, and making gtk work the same on both would be very hard. There is a proposal to solve this problem more fundamentally at [bugzilla.gnome.org] This isn’t entirely bad news, though. Threads on win32 /do/ work in most situations. Be sure to check general tips at [faq.pygtk.org] first If you need to use signals in a threaded win32 application, you need to make sure that the signal sent to your widget is done from the main thread instead of the subthread. The easiest way to do this is using gobject.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.