GtkSection: User Contributed Perl Documentation (3)Updated: 2001-06-27 |
GtkSection: User Contributed Perl Documentation (3)Updated: 2001-06-27 |
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;
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.