<!--/*SC*/DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"/*EC*/-->
<html><head><title></title><style type="text/css"><!--body{padding:1ex;margin:0px;font-family:sans-serif;font-size:small;}a[href]{color:-moz-hyperlinktext !important;text-decoration:-moz-anchor-decoration;}blockquote{margin:0;border-left:2px solid #144fae;padding-left:1em;}blockquote blockquote{border-color:#006312;}blockquote blockquote blockquote{border-color:#540000;}--></style></head><body><div style="font-family: Arial; font-size: medium;" dir="ltr"><div>I had planned on subclassing Tkinter.Toplevel() using property() to wrap access to properties like a window's title.</div>
<div> </div>
<div>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).</div>
<div> </div>
<div>1. Is there a technical reason why Tkinter classes are still old-style classes?</div>
<div> </div>
<div>2. Is there a technique I can use to get property() to work with old-style classes? Or, must I use composition and wrap a reference to a Tkinter.Toplevel() window in a new style class?</div>
<div> </div>
<div>Thanks,</div>
<div>Malcolm</div></div></body></html>