Hi there,

trying to port a Tkinter program[0] to pygtk2 I ran into a problem:
I replaced this Tkinter code:

====================
top = Tk()
top.title(title)
top.after_idle(do_something) # see [1] for details
top.mainloop()
====================

with following pygtk2 code

====================
top = gtk.Window()
while gtk.events_pending():
      gtk.main_iteration(block=gtk.FALSE)
do_something()
top.show_all()
top.mainloop()
====================


Can anyone prove it to be identical to Tkinter stuff?

[0]: Tk.VerboseUI for offlineimap
[1]: from
http://twisted.sourceforge.net/TwistedDocs-1.0.4alpha1/api/private/Tkinter.Misc.html#after_idle

after_idle(self, func, *args) 
Call FUNC once if the Tcl main loop has no event to process.

Return an identifier to cancel the scheduling with after_cancel.

TIA,
Igor
_______________________________________________
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