Re: Appl. freeze until function is complete
| From: | Paul Zirkle | Date: | Tue, 16 Sep 2003 23:21:31 +0000 |
| Subject: | Re: Appl. freeze until function is complete | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3903@lists.php.net to get a copy of this message | ||
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
>
>