Re: showing before event

From: Date: Sat, 08 Sep 2001 08:07:14 +0000
Subject: Re: showing before event
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-62@lists.php.net to get a copy of this message
Ryan, You'll need to do something like this:
        // code for authentication procedure
        $label->set_text("authenticating.... please wait");
        while (gtk::events_pending()) {
                gtk::main_iteration();
        }
        if ($authenticated) {
                $label->set_text("login success.... welcome to the world!!!");
                // code to handle this case
        }
        else {
                $label->set_text("opps... your login attempt failed:(");
                // code to handle this case
        }
HTH. At 09:51 PM Friday, 09/07/2001, you wrote:
I have a simple problem (i hope) if i hit a button, and it executes that event, but say in that event function i manipulate a label .. lets say a status label... and i'm doing something.. say loggin someone in.. so in that function i manipulate the label to say "authenticating.. please wait.." and then i connect to a database and this takes say 3 seconds.. then on return of the query to check for authentication i manipulate the label to say "failed... try again" or "thank you...." .. how do i get the gtk to redraw itself in between the manipulation of the label? it seems it doesnt redraw until the event function has completed... is there a way to force a redraw/refresh? Thanks Ryan Sexton -- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, e-mail: php-gtk-general-unsubscribe@lists.php.net For additional commands, e-mail: php-gtk-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
Cheers, Geoff A. Virgo ---------------------- Programmer: an advanced tool used for converting caffeine into code.

« previous php.gtk.general (#62) next »