Thread
:
Multitasking and GTK with python
View Single Post
omeriko9
2010-04-03 , 14:39
Posts: 385 | Thanked: 344 times | Joined on Jan 2010 @ Israel
#
16
Originally Posted by
McLightning
i posted the full code please could you tell me what should i do about it?
I suggested what you should do if you want to use threads for background work, aka write to a file or print to the terminal or doing some calculations, but keep all the GUI updates to the main thread (called 'UI thread').
epage
mentioned that as well but also extended this to how to handle the GUI itself from within child-threads (also called 'worker threads'), and suggested an alternative - give the gtk to handle your worker threads while it's available using the add_idle example he attached.
An advice - If it's your first work with treads, you might want to know more about threads in general and threads in python before diving into gtk's way for handling threads.
Quote & Reply
|
The Following User Says Thank You to omeriko9 For This Useful Post:
McLightning
omeriko9
View Public Profile
Send a private message to omeriko9
Find all posts by omeriko9