Hi, 

It looks like autoconnecting handlers to the GnomePropery box doesn't
work. For example when autoconnecting (using glade and a .glade file)
to the signal clicked, the handler never get called. The property box
is shown, when clicking the Ok button the dialog disappear but no
handler is called and no error output appears.

However using the GnomePropertyDialog method 'button_connect', the
handlers get called.


Python Gnome is 1.0.53, Libglade 0.14 and Glade 0.5.9.

Thanks,

Hilaire


class preferenceGnome (preferenceUI):
    'Gnome implementation of the preference dialog'
    def __init__ (self, filename, parentUI, DBPath, database):
        # load the widgets
        self.glade = GladeXML (filename, 'maxicardPropertyBox')
        # fetch some widget reference
        self.widgets = {
            'databasePathEntry' : self.glade.get_widget ('databasePathEntry'),
            'databaseNameEntry' : self.glade.get_widget ('databaseNameEntry')
            }
        dic = {'on_maxicardPropertyBox_clicked' : self.dialogClicked,
            'on_maxicardPropertyBox_close' : self.dialogClosed,
            'on_maxicardPropertyBox_apply' : self.dialogApplied
            }
        self.glade.signal_autoconnect (dic)

        # Feed the entries
        self.widgets['databasePathEntry'].set_text (DBPath)
        self.widgets['databaseNameEntry'].set_text (database)

    def dialogClicked (self, w):
        print 'hello'
        self.parentUI.initCardGnome (self.widgets['databasePathEntry'].get_text (),



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

Reply via email to