Thank you for your help in advance I've been stuck for nearly a week now!
I am trying to use tkinter on my Pi and the following works ok when run in the python application (shell):
import tkinter
tk = tkinter.Tk()
window = tkinter.Tk()
tk.mainloop
However when I enter the command:
python /home/pi/myfiles/windowtest.py
in the terminal, I get
ImportError: No module named tkinter
So far I have tried sudo apt-get install tkinter, same with updates, dev, tk, -f, python-tkinter and any others I could think of.
In fact sudo apt-get install tkinter
is unable to locate the package and the same with python-tkinter
.
sudo apt-get install python-tk
tells me is already the newest version installed.
Im using the latest NOOBS installed it about 10 days ago.
Background - I want to run a bit of python script started by crontab that uses mplayer, at the moment all the mplay blurb pushes my menu off the screen in terminal mode and I can't see it. I was hoping tkinter would open a window in which I can put my menu into and see it.