Re: What does Glade get_widget_tree function do?
| From: | Andrei Zmievski | Date: | Fri, 30 Mar 2001 16:40:49 +0000 |
| Subject: | Re: What does Glade get_widget_tree function do? | ||
| References: | 1 2 3 4 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-1213@lists.php.net to get a copy of this message | ||
On Fri, 30 Mar 2001, Matthew Lilius wrote:
> What I am wondering if I can do is something like this.
>
> $window_tree = libglade::get_widget_tree($widget);
> $window_tree->vbox->text_box->insert_text($text, strlen($text), 0);
This is not possible. Glade does not keep track of the widget hierarchy
you create. It's the same as if you built the interface by hand, vbox
will not have property 'text_box', it simply has a collection of child
widgets.
> What exactly can I do with the object returned from the get_wiget_tree?
It's a GladeXML object so you can do all the functions described by
get_class_methods('GladeXML');
-Andrei
"You choose to do the bad things in your life;
the good ones come and drag you along with them."
- Michael Marshall Smith