News
Normally, you’d import the whole GUI library with an import. You can import ttk from the tkinter module and then refer to the widgets explicitly (e.g., ttk.Button).
Hosted on MSN9mon
Learn Python Basics: Let's Build A Simple Expense Tracker - MSNTkinter includes all the functions we need to create a basic UI. You'll notice that we're also importing Ttk, a theming engine inside Tkinter. This allows us to control how our UI looks if we wish.
Also, although there is a ttk.py file in my python27\lib\lib-tk folder, there isn't a ttk.pyc file in there. I wonder if that's a symptom of the larger problem that's giving me the "cannot import ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results