Re: RES: RES: [PHP-GTK] Help with Dialog/Popup

From: Date: Thu, 04 Aug 2005 05:40:58 +0000
Subject: Re: RES: RES: [PHP-GTK] Help with Dialog/Popup
References: 1 2 3 4  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6156@lists.php.net to get a copy of this message
Neil, > accomplish the end result I am looking for, however, when I execute the > following code the result is a popup window showing up for 5 seconds blank, then > disappearing. I made a script with only that code, and a line which calls the function. The first time I ran it, I had the same problem like you - empty window. However, the second, third, ... many times it just worked. Maybe you could modify it from: > while(gtk::events_pending()) gtk::main_iteration(); > sleep(5); to > while(gtk::events_pending()) gtk::main_iteration(); > sleep(1); > while(gtk::events_pending()) gtk::main_iteration(); > sleep(4); You see what I want - give gtk some time to load whatever is necessary, and give it some more time to redraw. In your code, you should have some of the while(events_pending) statements in all places of your iteration, so that the user interface keeps responding to the user. Regards/MfG, Christian Weiske -- XMMS is playing now:

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.gtk.general (#6156) next »