I am writing a program using tkinter which has callbacks to functions which use GPIO.
Using GPIO the program has be be run via sudo but when I do this the first tkinter function, root = Tk()
causes a traceback "Client is not authorised to connect to server".
Obviously this can be done - my lack of knowledge is the cause of the problem!
Can someone give me the answer?