PyGTK FAQ Introduction

Материал из Wiki.crossplatform.ru

(Различия между версиями)
Перейти к: навигация, поиск
(Новая: <h1>Introduction to PyGTK</h1> In this part of the PyGTK programming tutorial, we will talk about the PyGTK GUI library and Python programming language in general. <h2>About this tuto...)
Строка 1: Строка 1:
-
 
-
<h1>Introduction to PyGTK</h1>
 
In this part of the PyGTK programming tutorial, we will talk about the PyGTK GUI library and Python programming language in general.  
In this part of the PyGTK programming tutorial, we will talk about the PyGTK GUI library and Python programming language in general.  
-
<h2>About this tutorial</h2>
+
== About this tutorial ==
This is PyGTK programming tutorial.  
This is PyGTK programming tutorial.  
It has been created and tested on Linux. The PyGTK programming tutorial is suited for novice and more advanced programmers.  
It has been created and tested on Linux. The PyGTK programming tutorial is suited for novice and more advanced programmers.  
-
<h2>PyGTK</h2>
+
== PyGTK ==
PyGTK is a set of Python wrappers for the GTK+ GUI library. It offers a comprehensive set of graphical elements and other useful programming facilities for creating desktop applications. It is a part of the GNOME project.  PyGTK is free software and licensed under the LGPL. Original autor or PyGTK is <b>James Henstridge</b>. PyGTK is very easy to use, it is ideal for rapid prototyping. Currently, PyGTK is one of the most popular bindings for the GTK+ library.
PyGTK is a set of Python wrappers for the GTK+ GUI library. It offers a comprehensive set of graphical elements and other useful programming facilities for creating desktop applications. It is a part of the GNOME project.  PyGTK is free software and licensed under the LGPL. Original autor or PyGTK is <b>James Henstridge</b>. PyGTK is very easy to use, it is ideal for rapid prototyping. Currently, PyGTK is one of the most popular bindings for the GTK+ library.
Строка 22: Строка 20:
<b>Glade</b> is used to build GUI interfaces from XML descriptions.
<b>Glade</b> is used to build GUI interfaces from XML descriptions.
-
<h2>Python</h2>
+
== Python ==
[[image: pygtk_faq_pythonlogo.png" style="float: left; | center]]
[[image: pygtk_faq_pythonlogo.png" style="float: left; | center]]
Строка 40: Строка 38:
-
<h2>GTK+</h2>
+
== GTK+ ==
[[image: pygtk_faq_gtk.png | center]]
[[image: pygtk_faq_gtk.png | center]]
Строка 49: Строка 47:
Gnome and XFce desktop environments have been created using the GTK+ library. SWT and wxWidgets are well known  programming frameworks, that use GTK+. Prominent software applications that use GTK+ include Firefox or Inkscape.
Gnome and XFce desktop environments have been created using the GTK+ library. SWT and wxWidgets are well known  programming frameworks, that use GTK+. Prominent software applications that use GTK+ include Firefox or Inkscape.
-
<h2>Sources</h2>
+
== Sources ==
* [http://www.pygtk.org pygtk.org]
* [http://www.pygtk.org pygtk.org]
* [http://wwww.wikipedia.org wikipedia.org]
* [http://wwww.wikipedia.org wikipedia.org]

Версия 12:27, 19 февраля 2009

In this part of the PyGTK programming tutorial, we will talk about the PyGTK GUI library and Python programming language in general.

Содержание

About this tutorial

This is PyGTK programming tutorial. It has been created and tested on Linux. The PyGTK programming tutorial is suited for novice and more advanced programmers.

PyGTK

PyGTK is a set of Python wrappers for the GTK+ GUI library. It offers a comprehensive set of graphical elements and other useful programming facilities for creating desktop applications. It is a part of the GNOME project. PyGTK is free software and licensed under the LGPL. Original autor or PyGTK is James Henstridge. PyGTK is very easy to use, it is ideal for rapid prototyping. Currently, PyGTK is one of the most popular bindings for the GTK+ library.

PyGTK consists of several modules.

center

GObject is a base class providing the common attributes and functions for PyGTK classes. ATK is the accessibility toolkit. This toolkit provides tools which help physically challenged people work with computers. GTK is the user interface module. The Pango is a library which is used to work with text and internationalization. Cairo is a library for creating 2D vector graphics.

Glade is used to build GUI interfaces from XML descriptions.

Python

Файл:Pygtk faq pythonlogo.png" style="float: left; Python is a dynamic object-oriented programming language. It is a general purpose programming language. It can be used for many kinds of software development. The design purpose of the Python language emphasizes programmer productivity and code readability.

Python was initially developed by Guido van Rossum. It was first released in 1991. Python was inspired by ABC and Haskell programming languages. Python is a high level, general purpose, multiplatform, interpreted language. Python is a minimalistic language. One of it's most visible features is that it does not use semicolons nor brackets. Python uses intendation instead. The most recent version of Python is 2.5.2, which was released in February 2008. Today, Python is maintained by a large group of volunteers worldwide. Python is open source software.

Python is an ideal start for those, who want to learn programming.


GTK+

center

The GTK+ is a library for creating graphical user interfaces. The library is created in C programming language. The GTK+ library is also called the GIMP Toolkit. Originally, the library was created while developing the GIMP image manipulation program. Since then, the GTK+ became one of the most popular toolkits under Linux and BSD Unix. Today, most of the GUI software in the open source world is created in Qt or in GTK+. The GTK+ is an object oriented application programming interface. The object oriented system is created with the Glib object system, which is a base for the GTK+ library. The GObject also enables to create language bindings for various other programming languages. Language bindings exist for C++, Python, Perl, Java, C# and other programming languages.

Gnome and XFce desktop environments have been created using the GTK+ library. SWT and wxWidgets are well known programming frameworks, that use GTK+. Prominent software applications that use GTK+ include Firefox or Inkscape.

Sources