Re: Re: access widget in glade file from script
| From: | Alexander Kuznetsov | Date: | Wed, 20 Nov 2002 08:26:36 +0000 |
| Subject: | Re: Re: access widget in glade file from script | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2680@lists.php.net to get a copy of this message | ||
Hello Marian,
Thanks!
It is working now!
Tuesday, November 19, 2002, 6:45:22 PM, you wrote:
MF> try this:
MF> <?php
MF> function on_but1_clicked( $button ){
MF> global $myApp;
MF> $myEntry = $myApp->get_widget("Entryfieldname");
MF> $myEntry->set_text("text");
MF> }
MF> function on_but2_clicked( $button ){
MF> global $myApp;
MF> $myEntry = $myApp->get_widget("Entryfieldname");
MF> $myEntry->set_text("");
MF> }
MF> $myApp = GladeXML("yourgladefile.glade");
$myApp->>signal_autoconnect();
MF> Gtk::main();
MF> }
--
Best regards,
Alexander Kuznetsov