Reputation: 513
I am installing tkinter on python3 by running:
$ sudo apt-get install python3-tk
This returns (translated): $ python3-tk is already in its latest version (3.6.9-1~18.04)
However, when I run:
from tkinter import ttk
I get the following error message:
ImportError: cannot import name 'ttk'
Upvotes: 1
Views: 2954
Reputation: 1003
The import should be import tkinter
: https://docs.python.org/3.8/library/tkinter.html#tkinter-modules
Upvotes: 1