New answers tagged

0

Here is my solution. This works for SSH terminal, or crontab: import Tkinter import sys import os if os.environ.get('DISPLAY','') == '': print('no display found. Using :0.0') os.environ.__setitem__('DISPLAY', ':0.0') #create main window master = Tkinter.Tk() master.title("tester") master.geometry("300x100") #make a label for the window label1 = ...


1

I've come up with a solution! import Tkinter import sys import os # check if if os.environ.get('DISPLAY','') == '': print('no display found. Using :0.0') os.environ.__setitem__('DISPLAY', ':0.0') master = Tkinter.Tk() #master.title("tester") #master.geometry("300x100") # Lay out label #label.pack() # Run forever! master.mainloop()


0

Open a terminal and type: sudo chmod g+s /usr/bin/octave This trick solve the issue


Top 50 recent answers are included