[issue42630] Variable.__init__ to raise a RuntimeError instead of obscure AttributeError
Ivo Shipkaliev
report at bugs.python.org
Sun Dec 13 21:07:43 EST 2020
Ivo Shipkaliev <ivo.shipkaliev at gmail.com> added the comment:
Sorry, we need "global" too:
333 > if not master:
334 > global _default_root
335 > if not _default_root:
336 > _default_root = Tk()
337 > master = _default_root
338 > self._root = master._root()
----------
resolution: -> works for me
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42630>
_______________________________________
More information about the Python-bugs-list
mailing list