Re: Changing a buttons label

From: Date: Wed, 13 Nov 2002 17:24:28 +0000
Subject: Re: Changing a buttons label
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2617@lists.php.net to get a copy of this message
from an earlier reply & its in the manual as well (not that the manual is there at the moment!) the text in the button is actually a child widget so you have to access the buttons label widget and talk to that. $mylabel = $nextbutton->child; $mylabel->set_text("Ende"); Regards, Simon Wheeler. firepages ----- Original Message ----- From: <erbel@submedia.de> To: "phpgtkliste" <php-gtk-general@lists.php.net> Sent: Wednesday, November 13, 2002 11:33 PM Subject: [PHP-GTK] Changing a buttons label > Hi all, > > I want to change a buttons label when there was a click on it, i.e. a > save button should get a change button on a customer address form? > > $button->set_label("change") doesn't work. In Documentation I found > nothing about that in the section GTKButtons. > > Can you help? > > Thanks Volker > > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > >

« previous php.gtk.general (#2617) next »