[pygtk] gtk main loop alternatives
greg.ewing at canterbury.ac.nz
Sun Oct 28 20:16:55 WST 2007
>>you have to do background work like this one, you need some kind of
> 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.
More information about the pygtk