
The Python GTK+ 3 Tutorial
Jan 1, 2025 · 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 …
1. Installation — Python GTK+ 3 Tutorial 3.4 documentation
1. Installation The first step before we start with actual coding consists of setting up PyGObject and its dependencies. PyGObject is a Python module that enables developers to access …
2. Getting Started — Python GTK+ 3 Tutorial 3.4 documentation
In the beginning, we have to import the Gtk module to be able to access GTK+’s classes and functions.
3. Basics — Python GTK+ 3 Tutorial 3.4 documentation
3. Basics This section will introduce some of the most important aspects of GTK+. 3.1. Main loop and Signals Like most GUI toolkits, GTK+ uses an event-driven programming model. When …
22. Glade and Gtk.Builder — Python GTK+ 3 Tutorial 3.4 …
22.3. Connecting Signals Glade also makes it possible to define signals which you can connect to handlers in your code without extracting every object from the builder and connecting to the …
23. Objects — Python GTK+ 3 Tutorial 3.4 documentation
GObject is the fundamental type providing the common attributes and methods for all object types in GTK+, Pango and other libraries based on GObject. The GObject.GObject class provides …
24. Application — Python GTK+ 3 Tutorial 3.4 documentation
Gtk.Application allows you to set a menu either via Gtk.Application.set_app_menu() or Gtk.Application.set_menubar(). If you make use of Gio.Resource this can automatically use …
9. Button Widgets — Python GTK+ 3 Tutorial 3.4 documentation
9.3. CheckButton Gtk.CheckButton inherits from Gtk.ToggleButton. The only real difference between the two is Gtk.CheckButton ’s appearance. A Gtk.CheckButton places a discrete …
6. Layout Containers — Python GTK+ 3 Tutorial 3.4 documentation
You can perfect your layout by specifying padding distance and centering values for each of your widgets. GTK+ then uses all this information to resize and reposition everything sensibly and …
7. Label — Python GTK+ 3 Tutorial 3.4 documentation
For instance, <b>bold text</b> and <s>strikethrough text</s>. In addition, Gtk.Label supports clickable hyperlinks. The markup for links is borrowed from HTML, using the a with href and …