您的位置:首页 > 编程语言 > Python开发

The Python GTK+ 3 Tutorial

2016-01-19 17:25 806 查看

The Python GTK+ 3 Tutorial

Release:3.4
Date:January 19, 2016
Copyright:GNU Free Documentation License 1.3 with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts
This tutorial gives an introduction to writing GTK+ 3 applications in Python.
Prior to working through this tutorial, it is recommended that you have a reasonable grasp of the Python programming language. GUI programming introduces new problems compared to interacting with
the standard output (console / terminal). It is necessary for you to know how to create and run Python files, understand basic interpreter errors, and work with strings, integers, floats and Boolean values. For the more advanced widgets in this tutorial, good
knowledge of lists and tuples will be needed.
Although this tutorial describes the most important classes and methods within GTK+ 3, it is not supposed to serve as an API reference. Please refer to the GTK+
3 Reference Manual for a detailed description of the API.
Contents:

1. Installation

1.1.
Dependencies
1.2.
Prebuilt Packages
1.3.
Installing From Source

2. Getting Started

2.1.
Simple Example
2.2.
Extended Example

3. Basics

3.1.
Main loop and Signals
3.2. Properties

4. How to Deal With Strings

4.1.
Definitions
4.2. Python
2
4.3. Python
3
4.4. References

5. Layout Containers

5.1. Boxes
5.2. Grid
5.3. Table
5.4. ListBox
5.5.
Stack and StackSwitcher
5.6. HeaderBar
5.7. FlowBox
5.8. Notebook

6. Label

6.1. Example

7. Entry

7.1. Example

8. Button Widgets

8.1.
Button
8.2.
ToggleButton
8.3.
CheckButton
8.4.
RadioButton
8.5.
LinkButton
8.6.
SpinButton
8.7.
Switch

9. ProgressBar

9.1.
Example

10. Spinner

10.1. Example

11. Tree and List Widgets

11.1.
The Model
11.2. The
View
11.3.
The Selection
11.4. Sorting
11.5.
Filtering

12. CellRenderers

12.1.
CellRendererText
12.2.
CellRendererToggle
12.3.
CellRendererPixbuf
12.4.
CellRendererCombo
12.5.
CellRendererProgress
12.6.
CellRendererSpin

13. ComboBox

13.1. Example

14. IconView

14.1. Example

15. Multiline Text Editor

15.1. The
View
15.2.
The Model
15.3. Tags
15.4. Example

16. Menus

16.1. Actions
16.2. UI
Manager
16.3. Example

17. Dialogs

17.1.
Custom Dialogs
17.2.
MessageDialog
17.3.
FileChooserDialog

18. Clipboard

18.1. Example

19. Drag and Drop

19.1.
Target Entries
19.2.
Drag Source Signals
19.3.
Drag Destination Signals
19.4.
Example

20. Glade and Gtk.Builder

20.1.
Creating and loading the .glade file
20.2.
Accessing widgets
20.3.
Connecting Signals
20.4. Example

21. Objects

21.1.
Inherit from GObject.GObject
21.2.
Signals
21.3.
Properties
21.4. API


Indices and tables

Search Page

Next
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: