Re: changing the label of a button

From: Date: Wed, 15 May 2002 13:56:53 +0000
Subject: Re: changing the label of a button
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-1975@lists.php.net to get a copy of this message
On Wed, May 15, 2002 at 03:42:42PM +0200, Henning Sprang wrote: > ok, i browsed now back until GTKContainer to find out and do it like that: > > $mychilds = $nextbutton->children(); > $mychilds[0]->set_text("Ende"); > > this works. > > but browsing further down showed me, too taht there is a property GtkBin named > child, but i wasn#t able to use this one instead. > > which of both is the better way, and if the better way is accessing the child > property of the GtkBin, how can i access it? it was another error why using the child property didn#t work. when doing it right the lines: $mylabel = $nextbutton->child; $mylabel->set_text("Ende"); do exactly the same... henning -- Henning Sprang, henning@sprang.de, http://www.sprang.de/

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