Re: Using property() to extend Tkinter classes but Tkinter classes are old-style classes?

2010-11-30 Thread Robert Kern
On 11/30/10 11:00 AM, Giacomo Boffi wrote: Terry Reedy writes: On 11/28/2010 3:47 PM, pyt...@bdurham.com wrote: I had planned on subclassing Tkinter.Toplevel() using property() to wrap access to properties like a window's title. After much head scratching and a peek at the Tkinter.py source,

Re: Using property() to extend Tkinter classes but Tkinter classes are old-style classes?

2010-11-30 Thread Hans Mulder
Giacomo Boffi wrote: Terry Reedy writes: On 11/28/2010 3:47 PM, pyt...@bdurham.com wrote: I had planned on subclassing Tkinter.Toplevel() using property() to wrap access to properties like a window's title. After much head scratching and a peek at the Tkinter.py source, I realized that all Tk

Re: Using property() to extend Tkinter classes but Tkinter classes are old-style classes?

2010-11-30 Thread Giacomo Boffi
Terry Reedy writes: > On 11/28/2010 3:47 PM, pyt...@bdurham.com wrote: >> I had planned on subclassing Tkinter.Toplevel() using property() to wrap >> access to properties like a window's title. >> After much head scratching and a peek at the Tkinter.py source, I >> realized that all Tkinter class

Re: Using property() to extend Tkinter classes but Tkinter classes are old-style classes?

2010-11-29 Thread python
Michele and Terry, > From: "Michele Simionato" > > Notice that you can upgrade a Tkinter class to a new-style class simply by > deriving from object. For instance you could define a new-style Label class > as: > > class Label(Tkinter.Label, object): > pass Michele - your technique is *exactl

Re: Using property() to extend Tkinter classes but Tkinter classes are old-style classes?

2010-11-29 Thread Michele Simionato
On Nov 29, 12:15 am, Terry Reedy wrote: > On 11/28/2010 3:47 PM, pyt...@bdurham.com wrote: > > > I had planned on subclassing Tkinter.Toplevel() using property() to wrap > > access to properties like a window's title. > > After much head scratching and a peek at the Tkinter.py source, I > > realiz

Re: Using property() to extend Tkinter classes but Tkinter classes are old-style classes?

2010-11-28 Thread Terry Reedy
On 11/28/2010 3:47 PM, pyt...@bdurham.com wrote: I had planned on subclassing Tkinter.Toplevel() using property() to wrap access to properties like a window's title. After much head scratching and a peek at the Tkinter.py source, I realized that all Tkinter classes are old-style classes (even und

Using property() to extend Tkinter classes but Tkinter classes are old-style classes?

2010-11-28 Thread python
I had planned on subclassing Tkinter.Toplevel() using property() to wrap access to properties like a window's title. After much head scratching and a peek at the Tkinter.py source, I realized that all Tkinter classes are old-style classes (even under Python 2.7). 1. Is there a technical reason wh