Misplaced Pages

Gtk2-Perl

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
(Redirected from Gtk2-perl)
The topic of this article may not meet Misplaced Pages's notability guidelines for products and services. Please help to demonstrate the notability of the topic by citing reliable secondary sources that are independent of the topic and provide significant coverage of it beyond a mere trivial mention. If notability cannot be shown, the article is likely to be merged, redirected, or deleted.
Find sources: "Gtk2-Perl" – news · newspapers · books · scholar · JSTOR (April 2016) (Learn how and when to remove this message)
Gtk2-Perl and Gtk3-Perl
Stable releaseGtk2: 1.24.92b
Gtk3:v0.017 / July 3, 2014; 10 years ago (2014-07-03)
July 3, 2014; 10 years ago (2014-07-03)
Written inPerl
TypeLanguage binding
LicenseGNU Lesser General Public License 2.1
Websitegtk2-perl.sourceforge.net
Main article: List of language bindings for GTK

Gtk2-Perl is a set of wrappers for the Perl programming language around the GTK and further GNOME libraries. Gtk-Perl is free and open-source software licensed under the GNU Lesser General Public License (LGPL) version 2.1. Developers and interested parties can usually be found on the IRC channel #gtk-perl on irc.gnome.org.

Gtk2-Perl is part of the official GNOME Platform Bindings release.

Example

use Gtk2 '-init';
$window = Gtk2::Window->new('toplevel');
$window->set_title("Hello World!");
$button = Gtk2::Button->new("Press me");
$button->signal_connect(clicked => sub { print "Hello again - the button was pressed\n"; });
$window->add($button);
$window->show_all;
Gtk2->main;
0;

The sample program creates a GTK Window titled "Hello World!". The window contains a Button labelled "Press me." When the button is pressed, the message "Hello again - the button was pressed" is displayed on the console via the callback inside the anonymous subroutine connected to the "clicked" signal.

References

  1. TwoPointFifteen/Bindings - GNOME Wiki

External links

GTK and its applications
Platform
GTK
freedesktop.org
(shared)
Development
GUI designer, RAD
IDEs
GNOME
Cinnamon
Xfce
LXDE
Graphical shells
3rd-party
applications
Office
Education
Graphics
Internet
Audio
Video
Utilities
Categories: