Movatterモバイル変換


[0]ホーム

URL:


This is an unofficial mirror of Tkinter reference documentation (based on Python 2.7 and Tk 8.5) created by the late John Shipman.
It was last updated in 2013 and is unmaintained.[More info]

Next / Previous /Contents

Tkinter 8.5 reference: a GUI for Python

organizational logo

Abstract

Describes theTkinter widget set for constructing graphical user interfaces (GUIs) in the Python programming language. Includes coverage of thettk themed widgets.

This publication is available in this web form and also as aPDF document.Please forward any comments to tcc-doc@nmt.edu.

Table of Contents

1. A cross-platform graphical user interface builder for Python
2. A minimal application
3. Definitions
4. Layout management
4.1. The.grid() method
4.2. Other grid management methods
4.3. Configuring column and row sizes
4.4. Making the root window resizeable
5. Standard attributes
5.1. Dimensions
5.2. The coordinate system
5.3. Colors
5.4. Type fonts
5.5. Anchors
5.6. Relief styles
5.7. Bitmaps
5.8. Cursors
5.9. Images
5.10. Geometry strings
5.11. Window names
5.12. Cap and join styles
5.13. Dash patterns
5.14. Matching stipple patterns
6. Exception handling
7. TheButton widget
8. TheCanvas widget
8.1.Canvas coordinates
8.2. TheCanvas display list
8.3.Canvas object IDs
8.4.Canvas tags
8.5.CanvastagOrId arguments
8.6. Methods onCanvas widgets
8.7.Canvas arc objects
8.8.Canvas bitmap objects
8.9.Canvas image objects
8.10.Canvas line objects
8.11.Canvas oval objects
8.12.Canvas polygon objects
8.13.Canvas rectangle objects
8.14.Canvas text objects
8.15.Canvas window objects
9. TheCheckbutton widget
10. TheEntry widget
10.1. Scrolling anEntry widget
10.2. Adding validation to anEntry widget
11. TheFrame widget
12. TheLabel widget
13. TheLabelFrame widget
14. TheListbox widget
14.1. Scrolling aListbox widget
15. TheMenu widget
15.1.Menu item creation (coption) options
15.2. Top-level menus
16. TheMenubutton widget
17. TheMessage widget
18. TheOptionMenu widget
19. ThePanedWindow widget
19.1.PanedWindow child configuration options
20. TheRadiobutton widget
21. TheScale widget
22. TheScrollbar widget
22.1. TheScrollbarcommand callback
22.2. Connecting aScrollbar to another widget
23. TheSpinbox widget
24. TheText widget
24.1.Text widget indices
24.2.Text widget marks
24.3.Text widget images
24.4.Text widget windows
24.5.Text widget tags
24.6. Setting tabs in aText widget
24.7. TheText widget undo/redo stack
24.8. Methods onText widgets
25.Toplevel: Top-level window methods
26. Universal widget methods
27. Standardizing appearance
27.1. How to name a widget class
27.2. How to name a widget instance
27.3. Resource specification lines
27.4. Rules for resource matching
28.ttk: Themed widgets
28.1. Importingttk
28.2. Thettk widget set
29.ttk.Button
30.ttk.Checkbutton
31.ttk.Combobox
32.ttk.Entry
33.ttk.Frame
34.ttk.Label
35.ttk.LabelFrame
36.ttk.Menubutton
37.ttk.Notebook
37.1. Virtual events for thettk.Notebook widget
38.ttk.PanedWindow
39.ttk.Progressbar
40.ttk.Radiobutton
41.ttk.Scale
42.ttk.Scrollbar
43.ttk.Separator
44.ttk.Sizegrip
45.ttk.Treeview
45.1. Virtual events for thettk.Treeview widget
46. Methods common to allttk widgets
46.1. Specifying widget states inttk
47. Customizing and creatingttk themes and styles
48. Finding and usingttk themes
49. Using and customizingttk styles
50. Thettk element layer
50.1.ttk layouts: Structuring a style
50.2.ttk style maps: dynamic appearance changes
51. Connecting your application logic to the widgets
52. Control variables: the values behind the widgets
53. Focus: routing keyboard input
53.1. Focus inttk widgets
54. Events
54.1. Levels of binding
54.2. Event sequences
54.3. Event types
54.4. Event modifiers
54.5. Key names
54.6. Writing your handler: TheEvent class
54.7. The extra arguments trick
54.8. Virtual events
55. Pop-up dialogs
55.1. ThetkMessageBox dialogs module
55.2. ThetkFileDialog module
55.3. ThetkColorChooser module

Next:1. A cross-platform graphical user interface builder for Python

John W. Shipman
Comments welcome: tcc-doc@nmt.edu
Last updated: 2013-12-31 17:59
Original URL:http://www.nmt.edu/tcc/help/pubs/tkinter/web/index.html

[8]
ページ先頭

©2009-2025 Movatter.jp