Re: [PHP-GTK] Change button-text?
[email protected] (Rich Payne)
| Newsgroups | php.gtk |
|---|---|
| Message-ID | <[email protected]> |
The button will have a child label that you can do a set_text on.
Something like (look at the Gtk+ docs, not sure I have the symantics
right);
$label=$button->children;
$label->set_text("New Text");
Now I think the $button->children might give you an array, can't remember.
--rdp
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. :)
>
> --
> Mvh./Best Regards | Jonas Delfs, http://delfs.dk
>
> "hehe ikke set en standart i min kode før, hvad er det for nogle dimser?" -
> X
>
>
>
>
--
Rich Payne
[email protected] www.alphalinux.org