A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
|
|
@ -0,0 +1,7 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
use Tk;
|
||||
|
||||
my $main = MainWindow->new;
|
||||
$main->Label(-text => 'Goodbye, World')->pack;
|
||||
MainLoop();
|
||||
10
Task/Hello-world-Graphical/Perl/hello-world-graphical-2.pl
Normal file
10
Task/Hello-world-Graphical/Perl/hello-world-graphical-2.pl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
use Tk;
|
||||
|
||||
my $main = MainWindow->new;
|
||||
$main->Button(
|
||||
-text => 'Goodbye, World',
|
||||
-command => \&exit,
|
||||
)->pack;
|
||||
MainLoop();
|
||||
15
Task/Hello-world-Graphical/Perl/hello-world-graphical-3.pl
Normal file
15
Task/Hello-world-Graphical/Perl/hello-world-graphical-3.pl
Normal 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;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
use XUL::Gui;
|
||||
|
||||
display Label 'Goodbye, World!';
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
use XUL::Gui;
|
||||
|
||||
display Button
|
||||
label => 'Goodbye, World!',
|
||||
oncommand => sub {quit};
|
||||
Loading…
Add table
Add a link
Reference in a new issue