[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)
alejandro autalan
report at bugs.python.org
Tue Jul 23 08:15:04 CEST 2013
alejandro autalan added the comment:
Hello.
I tried 'tkinter_split.patch' patch against 3.3.2, but a fix for grid_info function is also needed.
#test.py
import tkinter as tk
root = tk.Tk()
b = tk.Button(root, text='Button')
b.grid()
print(b.grid_info())
root.mainloop()
Here's is the script's output:
alejandro at vostro1:~/tmp$ cpython3.3 test.py
Traceback (most recent call last):
File "test.py", line 10, in <module>
print(b.grid_info())
File "/home/alejandro/apps/cpython3.3.2/lib/python3.3/tkinter/__init__.py", line 2024, in grid_info
if value[:1] == '.':
TypeError: '_tkinter.Tcl_Obj' object is not subscriptable
----------
nosy: +alejandroautalan
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16809>
_______________________________________
More information about the Python-bugs-list
mailing list