Re: [PHP-GTK] Timer
[email protected] (Daniel Adams)
| Newsgroups | php.gtk |
|---|---|
| Message-ID | <[email protected]> |
Checkout gtk_timeout_add in the gtk api reference on gtk.org. you would
call it like gtk::timeout_add ($seconds, "userfunc", $userdata); i think.
On Tue, 31 Jul 2001, 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
>
>
>
>
--