Re: status bar
| From: | Markus Fischer | Date: | Sun, 09 Dec 2001 19:35:14 +0000 |
| Subject: | Re: status bar | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-838@lists.php.net to get a copy of this message | ||
See Gtk::timeout_add(). Also try reading some docs from
developrs.gnome.org as this is not a PHP-GTK specific but
more a GTK+ 'how-it-works-in-general' question.
On Sun, Dec 09, 2001 at 07:32:01PM +0100, Hakan Kuecuekyilmaz wrote :
> Hello,
>
> how can I actualize the status bar say once a minute.
>
> I tried it like this:
>
> function connect()
> {
> ....
> while(TRUE) {
> ....
> $id = $status->get_context_id("stats");
> $status->push($id, $input);
> if ($j == 1) break; // disconnect() sets $j to 0
> sleep(60)
> }
> }
>
> Thats not very clever, because after clicking connect the function hangs
> in the while loop. How could this be solved?
>
> regards
> --
> Hakan Kuecuekyilmaz, presently intern at
> Tecnomatix Technologies Germany | Tel: +49 711 1389- 257
> Mittlerer Pfad 9 | <hakan@lisas.de>
> 70 499 Stuttgart | <hkuecuekyilmaz@tecnomatix.de>
> Studenten, Absolventen und Young Professionals
> <http://www.c-cn.de>
>
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, e-mail: php-gtk-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-gtk-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Please always Cc to me when replying to me on the lists.