I am trying to import ttk from tkinter. I am following instructions from this website:
I am using Spyder on mac with OS Mojave, on Spyder, python version is 3.8.6 (according to sys.version)
My code is:
import tkinter as tk
from tkinter import ttk
I am getting the following error message:
runfile('/Users/Tom/untitled0.py', wdir='/Users/Tom')
Traceback (most recent call last):
File "/Users/Tom/untitled0.py", line 3, in <module>
from tkinter import ttk
ImportError: cannot import name 'ttk' from 'tkinter' (/Applications/Spyder.app/Contents/Resources/lib/python38.zip/tkinter/__init__.pyc)