Re: Getting text from gtk_entry
| From: | Steph | Date: | Fri, 03 Aug 2001 04:16:59 +0000 |
| Subject: | Re: Getting text from gtk_entry | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-2483@lists.php.net to get a copy of this message | ||
I give up, on account of being asleep. I *think* it's going to be one of those things you can
get around with set_data() get_data() but I'm too tired to test it out. Can anyone awake out
there please help this Loll person, s/he's been at it for about 20 hours solid it seems!
ty
----- Original Message -----
From: "Steph" <Steph.Fox@btinternet.com>
To: "Lorrie Cooke" <support@quietriver.net>; <php-gtk@lists.php.net>
Sent: Friday, August 03, 2001 4:29 AM
Subject: Re: [PHP-GTK] Getting text from gtk_entry
Loll - like this.
You pass the function your data as its parameters. Basically.
(note that between the err msgs you now get the username echoed as required).
ps are you behind a firewall or something? your smtp definitely hates mine.
Stezzzzzzzzzzzzzzzzz
----- Original Message -----
From: "Lorrie Cooke" <support@quietriver.net>
To: <php-gtk@lists.php.net>
Sent: Friday, August 03, 2001 4:09 AM
Subject: [PHP-GTK] Getting text from gtk_entry
Hi :)
Im a bit confused on how i get text out of a entry field
I have two functions the first opens a "preference" window.. which has
the entry boxes
On pressing OK runs another function... however, im not sure how to get
the value of the entry box out of one function and into another... i
have globalized the variable however when i try using the method:
$user = $username->get_text();
in the second function, it errors with the error: call to member
function on a non - object...
So my question is how do i get the value of $username->get_text from one
function to another?
Thanks for your help! :)
Loll