Re: Fw: how to repeat action?
| From: | anet at webmedia dot pl | Date: | Mon, 12 Mar 2001 22:07:45 +0000 |
| Subject: | Re: Fw: how to repeat action? | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-732@lists.php.net to get a copy of this message | ||
On 12 Mar 2001, at 15:43, Andrei Zmievski wrote:
> On Mon, 12 Mar 2001, Josh Seward wrote:
> >
> >
> >
> > hi,
> >
> > there is the main loop GTK::main(); - can i make any other loop in
> > the script? is there something like a GTKTimer? :)
> >
> > I mean, i want the script to get data from the server every second
> > and show it in my GTKText... is it possible?
>
> Gtk::timeout_add()
ok - so what do i do wrong, that the code below doesn't make o
loop:
function repeated()
{
blah;
}
[...cut...]
Gtk::timeout_add(3000,'repeated');
Gtk::main();
sorry, if (as:)) the question is totally lame...
pozdrawiam
adrian
-----
"Perl - the only language that looks the same
before and after RSA encryption."