Re: entry value again & refresh window
| From: | Andrei Zmievski | Date: | Thu, 15 Mar 2001 16:48:16 +0000 |
| Subject: | Re: entry value again & refresh window | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-924@lists.php.net to get a copy of this message | ||
On Thu, 15 Mar 2001, Adam Rambousek wrote:
> I got another problem:
> I have a window with entry "name" and button "save&close". I want to
> type in the
> name and, after clicking on "save&close", I want to save the name to file
>
> i'm using something like this
> $button->connect('clicked', 'save_close',$entry_name->get_text());
$button->connect('clicked', 'save_close',$entry_name);
>
> function save_close($widget,$name) {
function save_close($widget,$entry) {
> $file=fopen("seznam.txt","a");
> fputs($file,$radek);
fputs($file,$entry->get_text());
-Andrei
* Ethernet n.: something used to catch the etherbunny. *