Emmabuntus, Ubuntu, Derivate, Linux, Open Source BackTrack, Linux, distributions, Ubuntu, derivate, securuty, forensic VirtualBox, Linux, Ubuntu, Raring Ringtail synaptic, Ubuntu, Linux, software packages jwplayer, multimedia, Linux, Ubuntu, flash Meshlab, graphic, software, Ubuntu, open source, Linux Synapse, Linux, Ubuntu, raring, Quantal Gimp, Ubuntu, Linux FreeMind, Linux, open source Linux, infographic, history

PyGTK lets you to easily create programs with a graphical user interface using the Python programming language.

pygtk-splashPyGTK (a.k.a python-gtk or gtk-python) is a set of bindings to the GTK+ user interface toolkit for the Python language.

There, new releases, news, reference docs, tutorials, applications built on top of it and other information can be found.

Python is an interpreted language with a very clean syntax, high-level data structures, dynamic typing, object oriented characteristics and generally acceptable performance.

GTK+ is a graphical user interface toolkit, which includes user interface components (hereafter called by the usual name widgets) and a framework for handling events that are produced upon these components.

A binding is code (usually a library) that allows you to access functions that were coded in another language. In our case, GTK+ was written in C, and applications written in C can use native GTK+. For a Python program to be able to create applications using the GTK+ framework, a special library has to be used. This library is PyGTK.

PyGTK will be phased out with the transition to GTK+ version 3. Instead, GObject introspection will be used to generate bindings for Python and other languages on the fly. This is expected to eliminate the delay between GTK updates and corresponding language binding updates, as well as reduce maintenance burden on the developers.

PyGTK is kept in gnome git; the module name for PyGTK is "pygtk". The module name for gnome-python is "gnome-python", so to check it out, type:

  git clone git://git.gnome.org/pygtk

and possibly:
  git clone git://git.gnome.org/gnome-python
  git clone git://git.gnome.org/gnome-python-desktop
  git clone git://git.gnome.org/gnome-python-extras

Please note that to use PyGTK you rely on recent code for GTK+ , GLib, atk, pango, Python. How recent exactly these dependencies need to be depends largely on the current target for the PyGTK development team. In general, CVS HEAD will use the latest CVS, but ask on the mailing list if problems arise.

If you want to make use of the Gnome libraries in your application, you will also need to install some other packages, such as the PyORBit, gnome-python, gnome-python-desktop or gnome-python-extras packages. They are available from the Gnome FTP site and its mirrors:

The latest release of PyGTK for GTK+ 2.24 is available from the following website:
Notable applications that use PyGTK.

PyGTK has been used in a number of notable applications, some examples:
    Anaconda installer
    Gedit (for optional Python subsystem and plugins)
    GIMP (for optional Python scripts)
    GNOME Sudoku


Custom Search

If you liked this article, subscribe to the feed by clicking the image below to keep informed about new contents of the blog:

Share on Google Plus

About Hugo Repetto

Ubuntu is a Linux distribution that offers an operating system predominantly focused on desktop computers but also provides support for servers. Based on Debian GNU / Linux, Ubuntu focuses on ease of use, freedom in usage restriction, regular releases (every 6 months) and ease of installation.
    Blogger Comment
    Facebook Comment


Post a Comment