Gtk2-Perl

Last updated
Gtk2-Perl and Gtk3-Perl
Stable release
Gtk2: 1.24.92b
Gtk3:v0.017 / July 3, 2014;6 years ago (2014-07-03)
July 3, 2014;6 years ago (2014-07-03)
Written in Perl
Type Language binding
License GNU Lesser General Public License 2.1
Website gtk2-perl.sourceforge.net

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.

Contents

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

Example

useGtk2'-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.

Related Research Articles

GNOME Web Free and open-source Linux web browser

GNOME Web is a free and open-source web browser based on the GTK port of Apple's WebKit rendering engine, called WebKitGTK. It is developed by the GNOME project for Unix-like systems. It is the default and official web browser of GNOME, and part of the GNOME Core Applications.

gedit

gedit is the default text editor of the GNOME desktop environment and part of the GNOME Core Applications. Designed as a general-purpose text editor, gedit emphasizes simplicity and ease of use, with a clean and simple GUI, according to the philosophy of the GNOME project. It includes tools for editing source code and structured text such as markup languages.

FLTK

Fast Light Toolkit is a cross-platform widget library for graphical user interfaces (GUIs), developed by Bill Spitzak and others. Made to accommodate 3D graphics programming, it has an interface to OpenGL, but it is also suitable for general GUI programming.

Glade Interface Designer

Glade Interface Designer is a graphical user interface builder for GTK, with additional components for GNOME. In its third version, Glade is programming language–independent, and does not produce code for events, but rather an XML file that is then used with an appropriate binding. See List of language bindings for GTK for the available ones.

PyGTK

PyGTK is a set of Python wrappers for the GTK graphical user interface library. PyGTK is free software and licensed under the LGPL. It is analogous to PyQt/PySide and wxPython, the Python wrappers for Qt and wxWidgets, respectively. Its original author is GNOME developer James Henstridge. There are six people in the core development team, with various other people who have submitted patches and bug reports. PyGTK has been selected as the environment of choice for applications running on One Laptop Per Child systems.

Cairo is an open source graphics library that provides a vector graphics-based, device-independent API for software developers. It provides primitives for two-dimensional drawing across a number of different back ends. Cairo uses hardware acceleration when available.

PHP-GTK

PHP-GTK is a set of language bindings for PHP which allow GTK GUI applications to be written in PHP. PHP-GTK provides an object-oriented interface to GTK classes and functions. While PHP-GTK partially supports GTK2, GTK3 is not supported at all.

GDK

GDK is a library that acts as a wrapper around the low-level functions provided by the underlying windowing and graphics systems. GDK lies between the display server and the GTK library, handling basic rendering such as drawing primitives, raster graphics (bitmaps), cursors, fonts, as well as window events and drag-and-drop functionality.

gtkmm is the official C++ interface for the popular GUI library GTK. gtkmm is free software distributed under the GNU Lesser General Public License (LGPL).

Qt Jambi is a Java binding of the cross-platform application framework Qt. It enables Java developers to use Qt within Java programming language. In addition, Qt Jambi generator can be used to create Java bindings for other Qt libraries and future versions of Qt. Unlike GTK there are no Swing LAF implementations that use Qt for rendering.

GNOME Character Map

GNOME Character Map, formerly known as Gucharmap, is a free and open-source software Unicode character map program, part of GNOME. This program allows characters to be displayed by Unicode block or script type. It includes brief descriptions of related characters and occasionally meanings of the character in question. Gucharmap can also be used to input or enter characters. The search functionality allows the use of several search methods, including by Unicode name or code point of the character. It is built on the GTK toolkit and can be run on any platform supported by GTK. A number of text programs use Gucharmap for character input.

Vala (programming language) programming language

Vala is an object-oriented programming language with a self-hosting compiler that generates C code and uses the GObject system.

Clutter is a GObject-based graphics library for creating hardware-accelerated user interfaces. Clutter is an OpenGL-based 'interactive canvas' library and does not contain any graphical control elements. It relies upon OpenGL (1.4+) or OpenGL ES for rendering,. It also supports media playback using GStreamer and 2D graphics rendering using Cairo.

java-gnome is a set of language bindings for the Java programming language for use in the GNOME desktop environment. It is part of the official GNOME language bindings suite and provides a set of libraries allowing developers to write computer programs for GNOME using the Java programming language and the GTK+ cross-platform widget toolkit.

Vaadin

Vaadin is an open-source platform for web application development. The Vaadin Platform includes a set of web components, a Java web framework, and a set of tools and application starters. Its flagship product, Vaadin Platform allows the implementation of HTML5 web user interfaces using the Java programming language.

Ultimate++

Ultimate++, also known as U++ and Upp - is a C++ rapid application development framework which aims to reduce the code complexity of typical desktop applications by extensively exploiting C++ features. Programs created with it can work on multiple operating systems and hardware architectures without the need to write platform specific code.

GTK Cross-platform widget toolkit for creating graphical user interfaces

GTK is a free and open-source cross-platform widget toolkit for creating graphical user interfaces (GUIs). It is licensed under the terms of the GNU Lesser General Public License, allowing both free and proprietary software to use it. It is one of the most popular toolkits for the Wayland and X11 windowing systems.

Seed is a JavaScript interpreter and a library of the GNOME project to create standalone applications in JavaScript. It uses the JavaScript engine JavaScriptCore of the WebKit project. It is possible to easily create modules in C.

Nana is a cross-platform C++ library for creating graphical user interfaces. It uses a platform-independent API and currently supports Windows, Linux and FreeBSD.

References