简体   繁体   中英

ttk and quitter modules in python

I'm learning Tkinter using online tutorials (like http://zetcode.com/gui/tkinter/layout/ ) and others. I have python 2.6.6 on Slackware 13.37.

When I try to import ttk or quitter I get error messages telling me there is no such module. Here's what I've done:

from Tkinter import Tk, W, E from ttk import Frame, Button, Label, Style from ttk import Entry

or

from quitter import Quitter

Can anyone tell me what's going on? I've looked at the other questions on this site concerning this question and none of them have helped me.

I can't find a ttk or quitter module online, or any site that has any info that solves my problem.

Programming Python 2nd edition has examples with quitter that don't work. What I'm trying to do is to have a popup window that will allow users to input some info and have the box go away when the info is entered.

Thanks

To use ttk from Python, you need a separate install you can get from here . Also threre is no quitter modyle in the standard library (not sure where you can get it) .

EDIT: Quitter module seems to be from a book "Programming Python, 3rd Edition". Here's the quitter source code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM