Re: Yet another question...
| From: | Andrei Zmievski | Date: | Mon, 05 Mar 2001 21:38:35 +0000 |
| Subject: | Re: Yet another question... | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-336@lists.php.net to get a copy of this message | ||
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)
{
}
-Andrei
We all have photographic memories, it's just
that some of us don't have any film.