Priprava na vyhradni mod
[mirrors/Programs.git] / perl / gtk2 / gtk2.pl
... / ...
CommitLineData
1#!/usr/bin/env perl
2use strict;
3use warnings;
4use Gtk2 -init;
5
6# Gtk2->init; works if you didn't use -init on use
7my $window = Gtk2::Window->new ('toplevel');
8my $button = Gtk2::Button->new ('Quit');
9$button->signal_connect (clicked => sub { Gtk2->main_quit });
10$window->add ($button);
11$window->show_all;
12Gtk2->main;
13
This page took 0.227537 seconds and 4 git commands to generate.