Tkinter
John W. Shipman
2010-12-12 14:13
Abstract
Describes the Tkinter widget set for constructing graphical user interfaces (GUIs) in the Python programming language. This publication is available in Web form1 and also as a PDF document2. Please forward any comments to tcc-doc@nmt.edu.
Table of Contents
1. What is Tkinter?....................................................................................................................... 3 2. A minimal application .............................................................................................................. 3 3. Definitions .............................................................................................................................. 4 4. Layout management................................................................................................................. 5 4.1. The .grid() method .................................................................................................... 5 4.2. Other grid management methods ................................................................................... 6 4.3. Configuring column and rowsizes ................................................................................. 7 4.4. Making the root window resizeable ................................................................................ 8 5. Standard attributes ................................................................................................................... 8 5.1. Dimensions................................................................................................................... 9 5.2. The coordinate system ................................................................................................... 9 5.3. Colors ........................................................................................................................... 9 5.4. Type fonts................................................................................................................... 10 5.5. Anchors ...................................................................................................................... 11 5.6. Relief styles ................................................................................................................. 12 5.7. Bitmaps....................................................................................................................... 12 5.8. Cursors ....................................................................................................................... 12 5.9. Images ........................................................................................................................ 14 5.10. Geometrystrings ........................................................................................................ 14 5.11. Window names ........................................................................................................... 15 5.12. Cap and join styles ..................................................................................................... 15 5.13. Dash patterns............................................................................................................. 16 5.14. Matching stipple patterns ............................................................................................ 16 6. The Button widget ................................................................................................................ 17 7. The Canvas widget................................................................................................................ 19 7.1. Canvas coordinates ...................................................................................................... 20 7.2. The Canvas display list ................................................................................................ 20 7.3. Canvas object IDs...
Regístrate para leer el documento completo.