Package: python-tk Version: 2.7.13-1 When trying to create a Tk Label object, Python Tkinter crashes. Here is the a traceback of the error:
>>> import Tkinter >>> tk = Tkinter.Tk() >>> label = Tkinter.Label(tk, text="Testing") Traceback (most recent call last): File "<input>", line 1, in <module> label = Tkinter.Label(tk, text="Testing") File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 2599, in __init__ Widget.__init__(self, master, 'label', cnf, kw) File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 2098, in __init__ (widgetName, self._w) + extra + self._options(cnf)) TclError: expected integer but got "Sans" In addition, the _test() function should pop up a small window with two buttons. However, it also fails with the same traceback: >>> Tkinter._test() Traceback (most recent call last): File "<input>", line 1, in <module> Tkinter._test() File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 3847, in _test label = Label(root, text=text) File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 2599, in __init__ Widget.__init__(self, master, 'label', cnf, kw) File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 2098, in __init__ (widgetName, self._w) + extra + self._options(cnf)) TclError: expected integer but got "Sans" These tests also fail with the `python3-tk' package, version 3.5.3-2: $ python3 >>> import tkinter >>> tkinter._test() Traceback (most recent call last): File "<input>", line 1, in <module> tkinter._test() File "/usr/lib/python3.5/tkinter/__init__.py", line 3851, in _test label = Label(root, text=text) File "/usr/lib/python3.5/tkinter/__init__.py", line 2617, in __init__ Widget.__init__(self, master, 'label', cnf, kw) File "/usr/lib/python3.5/tkinter/__init__.py", line 2150, in __init__ (widgetName, self._w) + extra + self._options(cnf)) _tkinter.TclError: expected integer but got "Sans" >>> tk = tkinter.Tk() >>> label = tkinter.Label(tk, text="Testing") Traceback (most recent call last): File "<input>", line 1, in <module> label = tkinter.Label(tk, text="Testing") File "/usr/lib/python3.5/tkinter/__init__.py", line 2617, in __init__ Widget.__init__(self, master, 'label', cnf, kw) File "/usr/lib/python3.5/tkinter/__init__.py", line 2150, in __init__ (widgetName, self._w) + extra + self._options(cnf)) _tkinter.TclError: expected integer but got "Sans" Both modules depend on: blt (>= 2.4z-9) libc6 (>= 2.4) libtcl8.6 (>= 8.6.0) libtk8.6 (>= 8.6.0) libx11-6 tk8.6-blt2.5 (>= 2.5.3) -- . o . o . o . . o o . . . o . . . o . o o o . o . o o . . o o o o . o . . o o o o . o o o
signature.asc
Description: PGP signature