[pygtk] gtk main loop alternatives
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Oct 28 20:16:55 WST 2007
Donn wrote:
>>you have to do background work like this one, you need some kind of
>>multithreading.
>>
>
> Blimey. I have managed to get this far in life without ever looking at
> threads. I suppose it's high time ...
That's not the only way. You can use gobject.timeout_add()
to arrange for a function to be called at regular intervals.
That function can then do whatever the body of your while
loop would have done.
--
Greg
More information about the pygtk
mailing list