mån 2003-03-10 klockan 16.54 skrev Jay Graves:
> I am trying to build an app using an object oriented approach that I saw
> someone post here before.  The code goes something like this
> 
> class GUI(gtk.glade.XML):
>       def __init__(self):
>               gtk.glade.XML.__init__(self,'the.glade.file,'GUI')
>               self.signal_autoconnect(dict(GUI.__dict__))
>               self.textWindow = self.get_widget('textWindow')
>       def on_button_clicked(self):
>               self.textWindow.set_text('this is a test')

If you're using pygtk 1.99.15 or higher, try:

self.signal_autoconnect(self) instead.

Which should do what you want.

-- 
Johan Dahlin <[EMAIL PROTECTED]>
Async Open Source

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to