James Henstridge wrote:
Don't sleep :)
When you call sleep(), the whole process sleeps and you starve the
event loop. If you want to do something 10 seconds later, set a
timeout with gtk.timeout_add() (the timeout is in milliseconds, so you
would pass 1 as the timeout) and return from
James Henstridge wrote:
Don't sleep :)
When you call sleep(), the whole process sleeps and you starve the
event loop. If you want to do something 10 seconds later, set a
timeout with gtk.timeout_add() (the timeout is in milliseconds, so you
would pass 1 as the timeout) and return from
Javi Roman Espinar wrote:
Dear all,
I have a problem with the following program. When I push the button
the program shows the dialog window but doesn't show the labels whithin
the dialog. This labels are shown when the sleep(10) function ends.
Why events_pending loop doesn't work? What can I