On Mon, 2003-03-10 at 15:03, Juan Pinazo wrote:
> 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. :-)

I'll put in an unsolicited plug here.  I started using it and quickly
converted parts of my application.  It is easy to use and the authors
are very quick to help with problems or provide features that make
sense.

> 
> 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/
-- 
Steve McClure <[EMAIL PROTECTED]>
Racemi, Inc.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to