[issue21402] tkinter.ttk._val_or_dict assumes tkinter._default_root exists

Stephen Paul Chappell report at bugs.python.org
Tue May 13 23:07:56 CEST 2014


Stephen Paul Chappell added the comment:

It seems that most functions and methods do not bother checking if _default_root exists before trying to access it. However, upon seeing line 366 in ttk (if tkinter._support_default_root:), my recommendation would be to change line 319 to "if tkinter._support_default_root and tkinter._default_root:" to fix the problem. Several similar lines appear in tkinter\__init__.py at locations 1835, 1845, and 2050.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21402>
_______________________________________


More information about the Python-bugs-list mailing list