PyGTK 2.0 Tutorial
|  | Next

# PyGTK 2.0 Tutorial

### John Finlay

Version 2.4

April 13, 2005

Revision History
Revision 2.4 | April 13, 2005
Update example programs
Revision 2.3 | December 24, 2004
Add more PyGTK 2.4 widgets
Revision 2.2 | August 3, 2004
Add new PyGTK 2.2 and some PyGTK 2.4 widgets
Revision 2.1 | July 6, 2004
More TreeView
Revision 2.0 | May 24, 2004
First release for PyGTK 2.0

Abstract

This tutorial describes the use of the Python PyGTK module.

List of Figures

2.1. Simple PyGTK Window
2.2. Hello World Example Program
3.1. Upgraded Hello World Example
4.1. Packing: Five Variations
4.2. Packing with Spacing and Padding
4.3. Packing with pack_end()
4.4. Packing using a Table
6.1. Button with Pixmap and Label
6.2. Toggle Button Example
6.3. Check Button Example
6.4. Radio Buttons Example
8.1. Range Widgets Example
9.1. Label Examples
9.2. Arrows Buttons Examples
9.3. Tooltips Example
9.4. ProgressBar Example
9.5. Example Images in Buttons
9.6. Pixmap in a Button Example
9.7. Wheelbarrow Example Shaped Window
9.8. Rulers Example
9.9. Statusbar Example
9.10. Entry Example
9.11. Spin Button Example
9.12. Calendar Example
9.13. Color Selection Dialog Example
9.14. File Selection Example
9.15. Font Selection Dialog
10.1. Event Box Example
10.2. Fixed Example
10.3. Layout Example
10.4. Frame Example
10.5. Aspect Frame Example
10.6. Paned Example
10.7. Scrolled Window Example
10.8. Toolbar Example
10.9. Notebook Example
11.1. Menu Example
11.2. Item Factory Example
12.1. Drawing Area Example
13.1. Basic TextView Example
13.2. TextView Example
14.1. Basic TreeView Example Program
14.2. TreeViewColumns with CellRenderers
14.3. CellRenderer Data Function
14.4. File Listing Example Using Cell Data Functions
14.5. CellRendererText Markup
14.6. Editable and Activatable Cells
14.7. Expander Arrow in Second Column
14.8. TreeView Drag and Drop Example
14.9. TreeModelSort Example
14.10. TreeModelFilter Visibility Example
14.11. Generic TreeModel Example Program
15.1. Clipboard Example Program
16.1. Simple Action Example
16.2. Basic Action Example
16.3. Actions Example
16.4. ActionGroup Example
16.5. Basic ComboBox
16.6. ComboBox with Wrapped Layout
16.7. Basic ComboBoxEntry
16.8. ColorButton Example
16.9. FontButton Example
16.10. EntryCompletion
16.11. Expander Widget
16.12. File Selection Example
16.13. Simple UIManager Example
16.14. UIMerge Example
21.1. Get Selection Example
21.2. Set Selection Example
22.1. Drag and Drop Example
24.1. Scribble Drawing Program Example
24.2. Simple Scribble Example

List of Tables

22.1. Source Widget Signals
22.2. Destination Widget Signals

|  | Next
|  | Chapter 1. Introduction