RE: [PHP-GTK] Yet another question...
| From: | Edward A. McLain | Date: | Mon, 05 Mar 2001 21:38:54 +0000 |
| Subject: | RE: [PHP-GTK] Yet another question... | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-337@lists.php.net to get a copy of this message | ||
Ahh.. Thank you sir.. <BOW>
Works like a charm.
Ed McLain
-----Original Message-----
From: Andrei Zmievski [mailto:andrei@ispi.net]
Sent: Monday, March 05, 2001 3:39 PM
To: Edward A. McLain
Cc: PHP-GTK (E-mail)
Subject: Re: [PHP-GTK] Yet another question...
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.