Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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 Gtk3 '-init';
|
||||
|
||||
$window = Gtk3::Window->new;
|
||||
$window->signal_connect(
|
||||
destroy => sub { Gtk3->main_quit; }
|
||||
);
|
||||
$window->show_all;
|
||||
Gtk3->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 strict;
|
||||
use warnings;
|
||||
use QtGui4;
|
||||
|
||||
my $app = Qt::Application(\@ARGV);
|
||||
my $window = Qt::MainWindow;
|
||||
$window->show;
|
||||
exit $app->exec;
|
||||
5
Task/Window-creation/Perl/window-creation-5.pl
Normal file
5
Task/Window-creation/Perl/window-creation-5.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