Re: [pygtk] Gtk envents?

2003-02-01 Thread Javi Roman Espinar
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

Re: [pygtk] Gtk envents?

2003-02-01 Thread Javi Roman
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

Re: [pygtk] Gtk envents?

2003-01-31 Thread James Henstridge
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