Re: Yet another question...

From: Date: Wed, 07 Mar 2001 14:51:29 +0000
Subject: Re: Yet another question...
References: 1 2  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-468@lists.php.net to get a copy of this message
Em Seg 05 Mar 2001 18:38, Andrei Zmievski escreveu: > On Mon, 05 Mar 2001, Edward A. McLain wrote: > > OK.. I got the window to show up that now has a blank for the username > > and a blank for the password and they both work correctly. Now, I > > created a button as follows: > > $button = &new GtkButton('Login'); > > $button->connect('clicked', 'verify_login'); > > > > This works correctly. When clicked it executes the verify_login > > function. Now how do I get the values for the GtkEntry boxes? All that > > clicking on the login button returns is the gtkwidget for the window? > > You can pass the entry widgets as extra parameters to the callback, that > would be one way to do it. > > $button->connect('clicked', 'verify_login', $user_widget, $pass_widget); > > function verify_login($button, $user_widget, $pass_widget) > { > } > Hum.....I have a $entry object, I pass it to verify login....... But, how can i have the objects text value? -- Iuri Fiedoruk Santa Maria, RS, Brazil

« previous php.gtk (#468) next »