[pygtk] Make Dialog disappear without returning to main loop
Nikolaus Rath
Nikolaus at rath.org
Tue Mar 23 01:37:21 WST 2010
Florian Diesch <diesch at spamfence.net> writes:
> Nikolaus Rath <Nikolaus at 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.
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
More information about the pygtk
mailing list