Re: [pygtk] Glade interface and Dialog: buttons don't work

2009-08-30 Thread Fabrice DELENTE
> You need to call this method to connect the callbacks named in the glade > file to the callbacks in the python program. You're absolutely right. Thanks for the tip. -- Fabrice DELENTE ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/m

Re: [pygtk] Glade interface and Dialog: buttons don't work

2009-08-30 Thread Marco Antonio Islas Cruz
Try this: gladeobj = gtk.glade.XML(gladeFile, 'dialog1') dialog = gladeobj.get_widget('dialog1') okButton = gladeobj.get_widget('okButton') cancelButton = gladeobj.get_widget('cancelButton') You are creating a new instance every time you call gtk.glade.XML, one for the dialog, one for the okButto

Re: [pygtk] Glade interface and Dialog: buttons don't work

2009-08-30 Thread John Finlay
Fabrice DELENTE wrote: >> Look at: >> >> http://library.gnome.org/devel/pygtk/stable/class-gladexml.html#method-gladexml--signal-autoconnect >> > > I think I don't need this method if I define the callbacks directly in the > glade file. > > You need to call this method to connect the callba

Re: [pygtk] Glade interface and Dialog: buttons don't work

2009-08-30 Thread Fabrice DELENTE
> Look at: > > http://library.gnome.org/devel/pygtk/stable/class-gladexml.html#method-gladexml--signal-autoconnect I think I don't need this method if I define the callbacks directly in the glade file. -- Fabrice DELENTE ___ pygtk mailing list pygtk

Re: [pygtk] Glade interface and Dialog: buttons don't work

2009-08-30 Thread John Finlay
Fabrice DELENTE wrote: > Hello. > > I designed an interface with Glade, and I want to use it with PyGtk. > > In this interface, there is a Window and a Dialog. The Dialog is popped up > when I click a button in the Window. > > I have a reference to the Dialog: > > dialog = gtk.glade.XML(gladeFile,

[pygtk] Glade interface and Dialog: buttons don't work

2009-08-30 Thread Fabrice DELENTE
Hello. I designed an interface with Glade, and I want to use it with PyGtk. In this interface, there is a Window and a Dialog. The Dialog is popped up when I click a button in the Window. I have a reference to the Dialog: dialog = gtk.glade.XML(gladeFile, "dialog1").get_widget("dialog1") and r