RE: [PHP-GTK] while loop and select

From: Date: Sat, 17 Dec 2005 14:24:13 +0000
Subject: RE: [PHP-GTK] while loop and select
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6419@lists.php.net to get a copy of this message
> > GTK gets frozen and cannot redraw I suppose. Then it says "Not > > Responding" and dies. > You can use the well-known > > while (Gtk::events_pending()) { Gtk::main_iteration();} hi folks, for my uploader I used the following loop, like christian suggests and it works OK... : // ------------------------------------------- // ... while ($upload == FTP_MOREDATA) { // update the status $txtstatus->set_text("Uploading... ". ftell($myfile)); $statustext->set_text("Destination:".$myupname."\n".ftell($myfile)." / ".$localfilesize); // Continue upload... $upload = ftp_nb_continue($conn_id); while(gtk::events_pending()) gtk::main_iteration(); } // ... // ------------------------------------------- that updates your gui at least... regards, ralf schwoebel http://www.gnope.org/

« previous php.gtk.general (#6419) next »