On Thu, 21 Dec 2000, Steven M. Castellotti wrote:

> 
> So I'm new to pygtk, and beggining to experiment with
> libglade/gtk/gnome/python. I'm writing a simple app to help me learn how
> the various widgets work, but I'm certain I'm missing something.
> 
>       All I want to do is have the text field of an entry get updated from
> within the program when the user clicks on a button (and then the system
> spawns an xterm for no reason):
> 
> def on_enter_button_clicked(obj):
>       # Clicking this button simply launches an xterm
>       entry = GladeXML("testApp.glade", "entry1").get_widget("entry1")
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Do you really mean to create a new copy of the entry here?  If you want to
get a reference to the entry widget, you must use the original GladeXML
object you instantiated.

James.


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to