On Mon, 10 Mar 2003, Jay Graves wrote:
> 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')
>
> Now once and instance of GUI has been set and the user clicks the
> button, on_button_clicked gets called, but errors because self then
> refers to the gtk.button instance and not the instance of GUI.
>
Try to use Kiwi: http://www.async.com.br/kiwi/
Its more easy to use gtk, and do cool things. :-)
So far, so good.
---
Juan Pinazo :: [EMAIL PROTECTED] :: +55 19 91661096 :: 16 33619227
Async Open Source - Brazil
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/