Tkinter problem: TclError> couldn't connect to display ":0
df at see.replyto.invalid
Fri Feb 5 06:20:44 EST 2016
gemjack.pb at 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 console, then
I'd suggest adding the line...
...to the root's .bashrc which avoids putting a specific user's
xauthority file in the root directory.
More information about the Python-list