Florian Diesch <[email protected]> writes: > Nikolaus Rath <[email protected]> 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.
Perfect, thanks! -Nikolaus -- »Time flies like an arrow, fruit flies like a Banana.« PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
