Re: [PHP-GTK] Getting text from gtk_entry
[email protected] ("Steph")
| Newsgroups | php.gtk |
|---|---|
| Message-ID | <012001c11bd3$28645d00$ac61073e@t2r1o8> |
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" <[email protected]> To: "Lorrie Cooke" <[email protected]>; <[email protected]> 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" <[email protected]> To: <[email protected]> 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