[issue5122] test_tcl and test_ttk_guionly don't like each other

Guilherme Polo report at bugs.python.org
Fri Feb 6 17:32:15 CET 2009


Guilherme Polo <ggpolo at gmail.com> added the comment:

After "I have isolated it now:", there should be this interactive
session (but gmail ate it apparently):

>>> import os
>>> del os.environ['DISPLAY']
>>> import Tkinter
>>> t = Tkinter.Tcl()
>>> t.loadtk()
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/home/gpolo/python-dev/python-trunk/Lib/lib-tk/Tkinter.py",
line 1649, in loadtk
   self.tk.loadtk()
_tkinter.TclError: no display name and no $DISPLAY environment variable
>>> Tkinter.Tk()
hang!

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5122>
_______________________________________


More information about the Python-bugs-list mailing list