Re: GtkProgressBar Example

From: Date: Tue, 28 Mar 2006 15:19:28 +0000
Subject: Re: GtkProgressBar Example
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6825@lists.php.net to get a copy of this message
Hi Eddie,
Thank you for the reply. I sincerely apology if the tone of my question seems offensive or "a bit harsh". I can assure you it was never intended to come across that way. I was simply asking for help. I am very new to PHP programming and GTK2. I am having fun with PHP-GTK2 and hope it continues to GROW. I really appreciate all the work you guys are doing to bring this development platform to us.
Yeah, it _was_ a bit extreme, but we'll accept the apology :)
The coding example you provided helped a lot. Also the Gtk2_PHPConfig was of great help.
Good.
The key for me in getting the ProgressBar to update and display correctly was the following code.
       while (Gtk::events_pending()) {
               Gtk::main_iteration();
       }
along with the hint for the following coding line. $y->set_fraction((float)($i/100.0)); The code I copied from the manual must be for GTK1. I will be more careful in the future.
The manual for PHP-GTK 2 will be available on the official site by next weekend. (But AFAICS it doesn't have progressbar docs yet either...) - Steph

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