Introduction to Gtk2-Perl
[30 mn de lecture - paru le 10/7/2004 3:02:44 PM - Public : Confirmé]
|
   
|
Auteur
Introduction
Gtk2-Perl is the binding which allows the use of the second version of the Gtk+ library with Perl.
GTK was initially developed by students of Berkley for their project of end of studies. Its API is object oriented but the native language used is C. This technological bizarrery finally facilitated many bindings of the library in many languages like C++, Java, Perl, Python, PHP... As of its launching GTK was very quickly adopted by the large ones of the Linux world. With the arrival of the second version development team, the limitation which limitated the use of GTK in the Unix world was raised.
In 1997 Kenneth Albanowski had the good idea to join Perl and GTK. He launched the Gtk-Perl project and maintains it until 2000, date to which the project is taken again by Paolo Molaro. Paolo makes it evolve a certain time and then nothing more happened. Goran Thyni and Guillaume Cottenceau (Mandrakesoft) appeared spontaneously to take the project again and after a succession of collaborators, the stable version of the binding arrived. This new version could not be called Gtk-Perl 2.0 for the simple and good reason that Paolo Molaro being impossible to join, it was morally unthinkable to make its project obsolete. It is thus not the second version of the binding Gtk-Perl which is most recent and functional but well the binding of the second version of Gtk named Gtk2-Perl. It is the simple existence of this project, so complete, which made Gtk-Perl obsolete.
When one wants to develop a graphic application under GNU/Linux, it is necessary to obtain the allowance of a window of the window manager. These formalities were made transparent with the use of GTK what facilitates and reduces the number of lines of code. And it became a play of child.
Of course all that must be done by having all the tools necessary: the Gtk2, Gtk2-Perl, Perl libraries and all the other tools like text editor. This document does not claim to give a course of Perl. It is thus obvious that you must know the bases of them. You have to know that to use the graphic library you must specify it at the beginning of your code with the line:
use Gtk2 '-init'
Which allows to initialize the Gtk2 C library.
|