---
name: "Gtk"
section: "3pm"
platform: "linux"
package: "libgtk-perl"
version: "0.7009-12"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk"
---

# Gtk(3pm)

Perl module for the Gimp Toolkit library

## NAME

Gtk - Perl module for the Gimp Toolkit library

## SYNOPSIS

```
        use Gtk '-init';
        my $window = new Gtk::Window;
        my $button = new Gtk::Button("Quit");
        $button->signal_connect("clicked", sub {Gtk->main_quit});
        $window->add($button);
        $window->show_all;
        Gtk->main;
```

## DESCRIPTION

The Gtk module allows Perl access to the Gtk+ graphical user interface library. You can find more information about Gtk+ on http://www.gtk.org. The Perl binding tries to follow the C interface as much as possible, providing at the same time a fully object oriented interface and Perl-style calling conventions.

You will find the reference documentation for the Gtk module in the `"Gtk::reference"` manpage. There is also a cookbook style manual in `"Gtk::cookbook"`. The `"Gtk::objects"` manpage contains a list of the arguments and signals for each of the classes available in the Gtk, Gnome and related modules. There is also a list of the flags and enumerations along with their possible values.

More information can be found on http://www.gtkperl.org.

## AUTHOR

Kenneth Albanowski, Paolo Molaro

## SEE ALSO

[*perl*(1)](/perl/1.md), [*Gtk::reference*(3pm)](/Gtk::reference/3pm.md)
