> 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
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
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
> 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
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,
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