Re: Appl. freeze until function is complete
| From: | Bernd Maier | Date: | Wed, 17 Sep 2003 15:36:42 +0000 |
| Subject: | Re: Appl. freeze until function is complete | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3910@lists.php.net to get a copy of this message | ||
Hi,
thanks for the answer. I have already read about
gtk::timeout_add($time, 'function_name);
But my understanding for this command is, that "function_name" will called
periodically every $time Seconds. Is my understanding wrong?
Means gtk::timeout_add($time, 'function_name); that "function_name" will
"executed" $time seconds and then will returned an error, if the function is
not completed?
thanks in advance, Bernd Maier
"Paul Zirkle" <keless@skyesurfer.net> schrieb im Newsbeitrag
news:004101c37ca9$437deff0$0200a8c0@CABBIT...
> look into gtk::timeout_add($time, 'function_name);
>
> -Paul Zirkle AKA Keless
>
> ----- Original Message -----
> From: "Bernd Maier" <bernd@netmeeting.dynxs.org>
> To: <php-gtk-general@lists.php.net>
> Sent: Tuesday, September 16, 2003 2:49 PM
> Subject: [PHP-GTK] Appl. freeze until function is complete
>
>
> > Hi all,
> >
> > i fight hard with php-gtk...I have written a aplication wich querys a
LDAP
> > Server and displays the result in a clist. Works fine.
> >
> > But sometimes the Server needs very long to answer. For this case i
would
> > have a "cancel" Button wich stops the query. But how can i realize this?
> The
> > Program "hangs" in the function wich querys the Server and the GUI is
> > blocked.
> >
> > Is there any posibility to implement a "timeout" in a function?
> >
> > If someone is here who can help me i will be verry happy. Thanks a lot
in
> > advance,
> > Bernd
> >
> > --
> > PHP-GTK General Mailing List (http://gtk.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >