This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Tkinter doesn't support property attributes
Type: behavior Stage: resolved
Components: Tkinter Versions: Python 2.6
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: bheklilr, r.david.murray
Priority: normal Keywords:

Created on 2011-07-11 16:56 by bheklilr, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg140148 - (view) Author: Aaron Stevens (bheklilr) Date: 2011-07-11 16:56
When using Tkinter in Python 2.6.6, it is impossible to use the new-style properties, as the base classes (Misc, Pack, Place, and Grid) do not use the new style classes.

It is easily fixed by changing the class declarations, i.e.:
  class Misc:
 becomes
  class Misc(object):
msg140149 - (view) Author: Aaron Stevens (bheklilr) Date: 2011-07-11 16:57
I forgot add that this is a problem only when inheriting from a Tkinter widget, such as a Frame.
msg140150 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2011-07-11 17:05
This is not a bug fix, but a feature request.  In Python3 the classes are of course new style.  So there's nothing to do here, sorry.
History
Date User Action Args
2022-04-11 14:57:19adminsetgithub: 56743
2011-07-11 17:05:26r.david.murraysetstatus: open -> closed

nosy: + r.david.murray
messages: + msg140150

resolution: out of date
stage: resolved
2011-07-11 16:57:59bheklilrsetmessages: + msg140149
2011-07-11 16:56:28bheklilrcreate