Tkinter problem: TclError> couldn't connect to display ":0
Michael Matveev
mischamv at googlemail.com
Sun Dec 29 15:20:00 EST 2013
Hi,
I use live Debian on VM and trying to compile this code.
import Tkinter
root = Tkinter.Tk()
root.title("Fenster 1")
root.geometry("100x100")
root.mainloop()
The shell gives out that kind of message:
File "test.py", line 5, in <module>
root = Tkinter.Tk()
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1712, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: couldn't connect to display ":0"
thanks for helping out.
greets.
Mike
More information about the Python-list
mailing list