Lepsi tester seriovky
[mirrors/Programs.git] / perl / gtk2 / builder.pl
... / ...
CommitLineData
1#!/usr/bin/env perl
2# Sample Gtk2-Perl Glade app
3# check http://code.google.com/p/camelbox/ for running on windows
4
5use strict;
6use warnings;
7use utf8;
8use Gtk2 qw{ -init };
9
10
11my $builder;
12my $window;
13
14$builder = Gtk2::Builder->new();
15$builder->add_from_file( "sample.builder" );
16
17$window = $builder->get_object( "window1" );
18$builder->connect_signals( undef );
19
20$window->show();
21
22$builder = undef;
23
24Gtk2->main();
25
26exit;
27
28
29sub cb_destroy
30{
31 Gtk2->main_quit();
32}
This page took 0.238189 seconds and 4 git commands to generate.