Re: Tkinter problem: TclError> couldn't connect to display ":0

2016-02-05 Thread Dave Farrance
gemjack...@gmail.com wrote: >This fixed my problem with thkinter. sudo cp ~/.Xauthority ~root/ Which means that you were creating a GUI window with Python as root, which is to be avoided if you can. If you can't avoid it and you're running it with sudo in a bash console, rather than a root

Re: Tkinter problem: TclError> couldn't connect to display ":0

2016-02-04 Thread gemjack . pb
On Sunday, 29 December 2013 20:20:00 UTC, Michael Matveev wrote: > 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

Re: Tkinter problem: TclError> couldn't connect to display ":0

2013-12-29 Thread Jason Swails
On Sun, Dec 29, 2013 at 10:29 PM, Steven D'Aprano wrote: > On Mon, 30 Dec 2013 10:30:11 +1100, Chris Angelico wrote: > > > On Mon, Dec 30, 2013 at 10:22 AM, Steven D'Aprano > > wrote: > >> So you need to X-forward from the remote machine to the machine you are > >> physically on, or perhaps it's

Re: Tkinter problem: TclError> couldn't connect to display ":0

2013-12-29 Thread Chris Angelico
On Mon, Dec 30, 2013 at 2:29 PM, Steven D'Aprano wrote: > On Mon, 30 Dec 2013 10:30:11 +1100, Chris Angelico wrote: > >> On Mon, Dec 30, 2013 at 10:22 AM, Steven D'Aprano >> wrote: >>> So you need to X-forward from the remote machine to the machine you are >>> physically on, or perhaps it's the o

Re: Tkinter problem: TclError> couldn't connect to display ":0

2013-12-29 Thread Steven D'Aprano
On Mon, 30 Dec 2013 10:30:11 +1100, Chris Angelico wrote: > On Mon, Dec 30, 2013 at 10:22 AM, Steven D'Aprano > wrote: >> So you need to X-forward from the remote machine to the machine you are >> physically on, or perhaps it's the other way (X is really weird). I >> have no idea how to do that,

Re: Tkinter problem: TclError> couldn't connect to display ":0

2013-12-29 Thread Chris Angelico
On Mon, Dec 30, 2013 at 10:22 AM, Steven D'Aprano wrote: > So you need to X-forward from the remote machine to the machine you are > physically on, or perhaps it's the other way (X is really weird). I have no > idea how to do that, but would love to know. With SSH, that's usually just "ssh -X tar

Re: Tkinter problem: TclError> couldn't connect to display ":0

2013-12-29 Thread Steven D'Aprano
Michael Matveev wrote: > 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

Re: Tkinter problem: TclError> couldn't connect to display ":0

2013-12-29 Thread Chris Angelico
On Mon, Dec 30, 2013 at 7:20 AM, Michael Matveev wrote: > The shell gives out that kind of message: > > File "test.py", line 5, in > root = Tkinter.Tk() > File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1712, in __init__ > self.tk = _tkinter.create(screenName, baseName, className, interactive,

Tkinter problem: TclError> couldn't connect to display ":0

2013-12-29 Thread Michael Matveev
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 root = Tkinter.Tk() File "/usr/lib/python2.7/lib-tk/Tkint