l�r 2004-05-08 klockan 05.23 skrev Elijah P Newren:
> Hi,
> 
> I'm having a perplexing problem.  I basically do the following:
>   button.set_label("new label")
>   while gobject.MainContext().iteration(gtk.FALSE):
>     pass
>   print "Some message..."
>   time.sleep(1)
>   gtk.mainquit()

Try this instead:

context = gobject.MainContext()
while context.pending():
  context.iterate(1)

or just use the gtk+ ones

while gtk.events_pending():
  gtk.main_iteration(1)

-- 
Johan Dahlin <[EMAIL PROTECTED]>

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to