Hi,
I am trying to run a Python program which has a GUI I have written to interact with the GPIO. The GUI runs ok but when I run it as Root i.e.
sudo python nameofprogram.py
I get an error message stating that
Client is not authorized to connet to ServerTraceback (most recent call last)
...
...
...
tkinter.TclError: couldn't connect to display ":0.0"
Any ideas how to run Tkinter as root? The program runs fine as my normal user but needs to be root to access the GPIO.