| 1 |
========= |
| 2 |
Tutorials |
| 3 |
========= |
| 4 |
|
| 5 |
These tutorials give an introduction to writing GTK/GNOME applications in |
| 6 |
Python. |
| 7 |
|
| 8 |
Prior to working through these tutorials, it is recommended that you have a |
| 9 |
reasonable grasp of the Python programming language. It is necessary for you to |
| 10 |
know how to create and run Python files, understand basic interpreter errors, |
| 11 |
and work with strings, integers, floats and boolean values. For the more |
| 12 |
advanced parts of these examples, good knowledge of lists and tuples will be |
| 13 |
needed. |
| 14 |
|
| 15 |
Although here we try to describe the most important classes and methods from |
| 16 |
GObject based libraries like GTK, it is not supposed to serve as an API |
| 17 |
reference. Please refer to the :ref:`api-references` list where you will |
| 18 |
find a detailed description of the API for each library. Also there's a |
| 19 |
`Python-specific reference <https://api.pygobject.gnome.org/>`_ |
| 20 |
available. |
| 21 |
|
| 22 |
.. note:: |
| 23 |
Our tutorial list is still not as extensive as we would like, so if you |
| 24 |
have experience with PyGObject, contributing docs is a great way to help. |
| 25 |
|
| 26 |
Some areas that could use your help: libadwaita components, GLib and Gio |
| 27 |
features. |
| 28 |
|
| 29 |
|
| 30 |
.. _api-references: |
| 31 |
|
| 32 |
API References |
| 33 |
-------------- |
| 34 |
|
| 35 |
* `GObject <https://docs.gtk.org/gobject/>`_ |
| 36 |
* `Gtk 4 <https://docs.gtk.org/gtk4/>`_ |
| 37 |
* `Gdk 4 <https://docs.gtk.org/gdk4/>`_ |
| 38 |
* `Gio <https://docs.gtk.org/gio/>`_ |
| 39 |
* `GLib <https://docs.gtk.org/glib/>`_ |
| 40 |
* `Adwaita <https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/>`_ |
| 41 |
* `Python-specific references <https://api.pygobject.gnome.org/>`_ |
| 42 |
|
| 43 |
Other Resources |
| 44 |
--------------- |
| 45 |
|
| 46 |
* The :devdocs:`GNOME Developer Documentation <tutorials>` |
| 47 |
has some tutorials that include Python examples. |
| 48 |
|
| 49 |
|
| 50 |
.. toctree:: |
| 51 |
:maxdepth: 1 |
| 52 |
:hidden: |
| 53 |
:caption: Contents |
| 54 |
|
| 55 |
gobject |
| 56 |
gtk4 |
| 57 |
libadwaita |
| 58 |
gtk3 |
| 59 |
|
| 60 |
.. toctree:: |
| 61 |
:maxdepth: 1 |
| 62 |
:hidden: |
| 63 |
:caption: External Resources |
| 64 |
|
| 65 |
.. toctree:: |
| 66 |
:maxdepth: 1 |
| 67 |
:hidden: |
| 68 |
:caption: About |