Hi everybody.
How can i install ttk module on linux?
When i try to import and use it on my Tkinter window, the error says sth like there is no module named ttk. So it means i should install it right?! I'm using python 2. I want to use ttk to make buttons more nicely.
Niloofar24
15
Posting Whiz
Recommended Answers
Jump to PostIn python 2 in kubuntu, I can import it directly
import ttk
In python 3 it is
from tkinter import ttk
ttk.py
should be in the folder lib-tk in your python2 library. Try to run…locate ttk
Jump to Postttk is included with Python27 on Debian Linux.
What is your exact traceback error message?
All 7 Replies
Gribouillis
1,391
Programming Explorer
Team Colleague
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Niloofar24
15
Posting Whiz
Gribouillis
1,391
Programming Explorer
Team Colleague
Lardmeister
461
Posting Virtuoso
Lardmeister
461
Posting Virtuoso
Gribouillis
1,391
Programming Explorer
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.