Nikolaus Rath <nikol...@rath.org> writes: > I am creating a dialog in a callback function. Is there a way to make > the dialog window disappear before the callback function returns? > > I do not care if the main window keeps unresponsive, I just want the > dialog to disappear. > > Here is a small sample script to demonstrate what I mean: > > > I would like to have the dialog window disappear *before* the > time.sleep() in do_stuff() finishes. Is that possible?
Call while gtk.events_pending(): gtk.main_iteration () so that pending events are processed. Florian -- GUIs programmieren mit Python und Glade: <http://www.florian-diesch.de/doc/python-und-glade/> _______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/