::-- JinQing [2008-06-19 07:21:01]
10.1. "On Today's Menu: Spam, Spam, and Spam"
10.1. “今日菜单:午餐肉,午餐肉,还是午餐肉”
This chapter is the second in a two-part tour of the Tkinter library. It picks up where Chapter 9 left off and covers some of the more advanced widgets and tools in the Tkinter arsenal. Among the topics presented in this chapter:
这一章是Tkinter库之旅两部分中的第二部分。它延继了第9章的叙述,并涉及Tkinter库中一些较高级的窗口部件和工具。本章的主题如下:
Menu, Menubutton, and OptionMenu widgets
- The Scrollbar widget: for scrolling text, lists, and canvases
- The Listbox widget: a list of multiple selections
- The Text widget: a general text display and editing tool
- The Canvas widget: a general graphical drawing tool
- The grid table-based geometry manager
- Time-based tools: after, update, wait, and threads
- Basic Tkinter animation techniques
- Clipboards, erasing widgets and windows, and so on
Menu、Menubutton,和 OptionMenu 部件
- Scrollbar 部件:翻卷文本、列表,和画布
- Listbox 部件:多个选项的列表
- Text 部件:普通的文本显示和编辑工具
- Canvas 部件:普通的图形绘制工具
- grid 表为基础的几何管理器
- 基于时间的工具:after、update、wait,和线程
- 基本的Tkinter动画技术
- 剪贴板、删除部件和窗口,等等
By the time you've finished this chapter, you will have seen the bulk of the Tkinter library, and you will have all the information you need to compose larger, portable user interfaces of your own. You'll also be ready to tackle the larger GUI techniques and examples presented in Chapters 11 and 12. As a segue to the next chapter, this one also closes with a look at the PyDemos and PyGadgets launcher toolbarsGUIs used to start larger GUI examples.
当你完成这一章时,你会看到Tkinter库的大部分,你将拥有你所需的全部信息,可以自己编写更大的、可移植的的用户界面。你也将能够应付第 11 和 12 章中的GUI技术和例子。作为到下一章的过渡,本章结束时将查看PyDemos和PyGadgets启动器工具栏GUI,它们用来启动更大的GUI例子。