- Raspberry Pi 3 Cookbook for Python Programmers
- Tim Cox Dr. Steven Lawrence Fernandes
- 43字
- 2021-08-27 18:25:39
Running Pygame and Tkinter with X11 forwarding
You can get the following error (or similar) when running the Pygame or Tkinter scripts:
_tkinter.TclError: couldn't connect to display "localhost:10.0"
In this case, use the following command to fix the error:
sudo cp ~/.Xauthority ~root/