Jun-05-2019, 07:17 PM
Hi
I'm trying to teach my son Python programming... we're using Spyder on Ubuntu.
I'm trying to use this code...
Any suggestions would be greatly appreciated.
Kind regards
Gary
I'm trying to teach my son Python programming... we're using Spyder on Ubuntu.
I'm trying to use this code...
from tkinter import * import tkinter tk = Tk() canvas = Canvas(tk, width=500, height=400) tk.title("drawing") canvas.pack() canvas.mainloop()However,I keep getting this error
ImportError: No module named tkinterI've tried installing python3-tk using apt-get but still no joy.
Any suggestions would be greatly appreciated.
Kind regards
Gary