[New-bugs-announce] [issue7914] IntVar() - AttributeError: 'NoneType' object has no attribute 'tk'
Nick
report at bugs.python.org
Thu Feb 11 22:20:20 CET 2010
New submission from Nick <nick.allgood at gmail.com>:
I tried to run the attached code and it seems IntVar() dies in the Tkinter module. After discussion with several other coworkers they seem to agree this may be a bug in Tkinter. If you need more info feel free to let me know and I can help with further testing.
OS: Windows XP 32-bit SP2
Python: Python 3.1.1
Error:
Traceback (most recent call last):
File "H:/code/python/hfprog_sounds/intvar-POC.py", line 3, in <module>
num_good = IntVar()
File "C:\Python31\lib\tkinter\__init__.py", line 265, in __init__
Variable.__init__(self, master, value, name)
File "C:\Python31\lib\tkinter\__init__.py", line 174, in __init__
self._tk = master.tk
AttributeError: 'NoneType' object has no attribute 'tk'
----------
components: Tkinter
files: intvar-POC.py
messages: 99238
nosy: Plazma
severity: normal
status: open
title: IntVar() - AttributeError: 'NoneType' object has no attribute 'tk'
type: compile error
versions: Python 3.1
Added file: http://bugs.python.org/file16214/intvar-POC.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7914>
_______________________________________
More information about the New-bugs-announce
mailing list