2 # Sample Gtk2-Perl Glade app
3 # check http://code.google.com/p/camelbox/ for running on windows
10 my $builder = Gtk2
::Builder
->new();
11 $builder->add_from_file( "sample.builder" );
14 foreach my $widget qw(window1 label1 entry1)
16 $widgets{$widget}=$builder->get_object($widget);
19 $builder->connect_signals( undef );
22 $widgets{'window1'}->show();
28 sub on_button1_clicked
30 $widgets{'label1'}->set_text($widgets{'entry1'}->get_text());
31 print 'Label1 text set to: '.$widgets{'label1'}->get_text()."\n";
This page took 1.287458 seconds and 4 git commands to generate.