Re: How to act on objects create by libgalde
| From: | Andrei Zmievski | Date: | Sun, 25 Mar 2001 16:03:59 +0000 |
| Subject: | Re: How to act on objects create by libgalde | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-1114@lists.php.net to get a copy of this message | ||
At 04:07 PM 3/25/01 +0200, Jan Lehnardt wrote:
Hi, I want (to use a simple and useless example) to and the window title dynamically in the script. I gave the window widget in glade the name 'mainWindow'. <?php dl('php_gtk.so'); $foo = &new GladeXML('galde.xml'); $mainWindow->set_title('blafoo'); Gtk::main(); ?> does not work, since $mainWindow is undefined. How do I access objects that are created via Glade?Since you know the names of the objects you create in Glade, you can do something like this (if your main window is named 'main_window'): $mainWindow = $foo->get_widget('main_window'); -Andrei