Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 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,8 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
use QtGui4;
|
||||
|
||||
my $app = Qt::Application(\@ARGV);
|
||||
my $label = Qt::Label('Goodbye, World');
|
||||
$label->show;
|
||||
exit $app->exec;
|
||||
Loading…
Add table
Add a link
Reference in a new issue