This commit is contained in:
Ingy döt Net 2013-04-10 21:29:02 -07:00
parent 764da6cbbb
commit db842d013d
19005 changed files with 197040 additions and 7 deletions

View file

@ -0,0 +1,7 @@
use strict;
use warnings;
use Tk;
my $main = MainWindow->new;
$main->Label(-text => 'Goodbye, World')->pack;
MainLoop();

View file

@ -0,0 +1,10 @@
use strict;
use warnings;
use Tk;
my $main = MainWindow->new;
$main->Button(
-text => 'Goodbye, World',
-command => \&exit,
)->pack;
MainLoop();

View file

@ -0,0 +1,15 @@
use strict;
use warnings;
use Gtk2 '-init';
my $window = Gtk2::Window->new;
$window->set_title('Goodbye world');
$window->signal_connect(
destroy => sub { Gtk2->main_quit; }
);
my $label = Gtk2::Label->new('Goodbye, world');
$window->add($label);
$window->show_all;
Gtk2->main;

View file

@ -0,0 +1,5 @@
use strict;
use warnings;
use XUL::Gui;
display Label 'Goodbye, World!';

View file

@ -0,0 +1,7 @@
use strict;
use warnings;
use XUL::Gui;
display Button
label => 'Goodbye, World!',
oncommand => sub {quit};