Re: how to change the label on a button
| From: | Steph | Date: | Fri, 24 Oct 2003 13:34:56 +0000 |
| Subject: | Re: how to change the label on a button | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3998@lists.php.net to get a copy of this message | ||
> It causes an error , Fatal error: Class 'GtkButton' does not support
> overloaded method calls in C:\phptest\phptest1.php-gtk on line 11,
when I
> try the following statement to change the label on a button. Please
give me
> some advices. Thnak you very much!
>
> $but1->child->set( "new label" );
>
so you don't overload the method call. And you get the name of the
method right too ;)
$child = $but1->child;
$child->set_text("new label");
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>