Re: [PHP-GTK] Change button-text?

[email protected] (Andrei Zmievski)
Newsgroups php.gtk
Message-ID <[email protected]>
On Tue, 31 Jul 2001, Jonas Delfs wrote:
> Hi
> 
> How do I do <subj.>?
> I have $button = &new GtkButton('Start'); and a few lines that gives it an
> action when clicked and so on.
> But when clicked, the function doFuskStart() is called. This function set a
> few other things in action and at last it should change the text on the
> $button.
> Now I can't explain it in more details. :)

$label = $button->child;
$label->set_text('New Text');

-Andrei
* Use the source, Luke. *
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.