logo       

Re: pygtk to use new-style classes?: msg#00089

gnome.gtk+.python

Subject: Re: pygtk to use new-style classes?

Joey Tsai wrote:
From the PyGTK reference, it appears that all pygtk classes derive from
gobject.GObject. Since PyGTK depends on Python >= 2.2, are there any plans for
the classes to Python new-style classes, so we get the joys of property() and
super()? Is this request bug 128765?

pygtk uses new style classes so super() and property() may be used. Are you asking if gobject properties can be mapped to Python properties? They can, but doing so would be an api change and would break existing code. There was some discussion of setting things up so that self.props.<gobject-name> could be used to get / set gobject properties, but nothing has been implemented AFAIK.

John
_______________________________________________
pygtk mailing list pygtk@xxxxxxxxxx
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise