help with entry value :)

From: Date: Wed, 07 Mar 2001 15:48:04 +0000
Subject: help with entry value :)
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-485@lists.php.net to get a copy of this message
I have this: $entry = &new GtkEntry(); $entry->set_text('Hello World'); $entry->select_region(0, 5); $box2->pack_start($entry); $entry->show(); $button = &new GtkButton('show'); $button->connect('clicked', 'show_value', $entry); $box2->pack_start($button); $button->show(); function show_value($entry) { $children = $entry->children(); $text = $children[0]->get(); echo($text); } But it returns the value "show" and not the entry text value. What I'm doing wrong? (hey, sorry for so many questions) :) -- Iuri Fiedoruk Santa Maria, RS, Brazil

« previous php.gtk (#485) next »