Re: Timer
| From: | Markus Fischer | Date: | Tue, 31 Jul 2001 11:03:47 +0000 |
| Subject: | Re: Timer | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-2416@lists.php.net to get a copy of this message | ||
Use gtk::timeout_add( function_name);
The functions return value control wether the timeout starts
again or not (read: true or false);
- Markus
On Tue, Jul 31, 2001 at 12:46:43PM +0200, Jonas Delfs wrote :
> Hi
>
> I would like to do something like this, without having sleep() to stop the
> whole program:
>
> function recursiv()
> {
> sleep(60*21);
> // do someting
> recursiv();
> }
> recursiv();
>
> What I am looking for, is a alternative to sleep(). An alternative that
> don't make my whole program stop (read: that don't give my mouse/arrow a
> hourglass wich results in a program that freeze because of the long
> (infinity) progress).
>
> --
> Mvh./Best Regards | Jonas Delfs, http://delfs.dk
>
> "hehe ikke set en standart i min kode før, hvad er det for nogle dimser?" -
> X
>
>
>
> --
> PHP GTK Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net
> For additional commands, e-mail: php-gtk-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
--
Markus Fischer, http://guru.josefine.at/~mfischer/
EMail: mfischer@guru.josefine.at
PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0