Package: python-tk
Version: 2.7.11-2
Severity: normal
Dear Maintainer,
I am a developer/maintainer of LinuxCNC, a free software CNC control.
Our users have encountered the following problem running on Debian Squeeze,
and I have distilled a test case.
The code works as expected on Debian Jessie and older.
The following Python script hits an assertion error on stretch, because
vv is the string 'True', rather than the string 'y':
#!/usr/bin/python
import Tkinter
t = Tkinter.Tk()
t.tk.eval(r"""
eval {
expr {"y"}
radiobutton .r -value y -variable v
}
.r invoke
""")
var = Tkinter.StringVar(t, name="v")
vv = var.get()
assert vv == 'y', (vv, type(vv))
I was not able to minimize the test case further.
The test case requires an active X server.
Installing version 2.7.8-2+b1 of python-tk (from jessie/main) makes the
script succeed, so I believe the problem was introduced between
2.7.8-2+b1 and 2.7.11-2.
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.4.0-trunk-rt-amd64 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect
Versions of packages python-tk depends on:
ii blt 2.5.3+dfsg-3
ii libc6 2.23-4
ii libtcl8.6 8.6.6+dfsg-1
ii libtk8.6 8.6.6-1
ii libx11-6 2:1.6.3-1
ii python 2.7.11-2
ii tk8.6-blt2.5 2.5.3+dfsg-3
python-tk recommends no packages.
Versions of packages python-tk suggests:
pn python-tk-dbg <none>
pn tix <none>
-- no debconf information