all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
4
Task/Window-creation/Perl/window-creation-1.pl
Normal file
4
Task/Window-creation/Perl/window-creation-1.pl
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
use Tk;
|
||||
|
||||
MainWindow->new();
|
||||
MainLoop;
|
||||
7
Task/Window-creation/Perl/window-creation-2.pl
Normal file
7
Task/Window-creation/Perl/window-creation-2.pl
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
use SDL::App;
|
||||
use SDL::Event;
|
||||
|
||||
$app = SDL::App->new;
|
||||
$app->loop({
|
||||
SDL_QUIT() => sub { exit 0; },
|
||||
});
|
||||
8
Task/Window-creation/Perl/window-creation-3.pl
Normal file
8
Task/Window-creation/Perl/window-creation-3.pl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
use Gtk '-init';
|
||||
|
||||
$window = Gtk::Window->new;
|
||||
$window->signal_connect(
|
||||
destroy => sub { Gtk->main_quit; }
|
||||
);
|
||||
$window->show_all;
|
||||
Gtk->main;
|
||||
8
Task/Window-creation/Perl/window-creation-4.pl
Normal file
8
Task/Window-creation/Perl/window-creation-4.pl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
use Gtk2 '-init';
|
||||
|
||||
$window = Gtk2::Window->new;
|
||||
$window->signal_connect(
|
||||
destroy => sub { Gtk2->main_quit; }
|
||||
);
|
||||
$window->show_all;
|
||||
Gtk2->main;
|
||||
3
Task/Window-creation/Perl/window-creation-5.pl
Normal file
3
Task/Window-creation/Perl/window-creation-5.pl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
use XUL::Gui;
|
||||
|
||||
display Window;
|
||||
5
Task/Window-creation/Perl/window-creation-6.pl
Normal file
5
Task/Window-creation/Perl/window-creation-6.pl
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
use Wx;
|
||||
|
||||
$window = Wx::Frame->new(undef, -1, 'title');
|
||||
$window->Show;
|
||||
Wx::SimpleApp->new->MainLoop;
|
||||
Loading…
Add table
Add a link
Reference in a new issue