Re: [PHP-GTK] Timer
[email protected] (Markus Fischer)
| Newsgroups | php.gtk |
|---|---|
| Message-ID | <[email protected]> |
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: [email protected]
> For additional commands, e-mail: [email protected]
> To contact the list administrators, e-mail: [email protected]
>
--
Markus Fischer, http://guru.josefine.at/~mfischer/
EMail: [email protected]
PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0