1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/perl
use warnings;
use strict;
use Tk;
use Tk::NoteBook;
my $mw = new MainWindow;
my $note = $mw->NoteBook( )->pack(
-side => "left",
-fill => "both",
-expand => 1
);
my $page1 = $note->add("1", -label => 'Haupt');
my $page3 = $note->add("2", -label => 'Einstellungen');
my $page2 = $note->add("3", -label => 'Material');
my $page4 = $note->add("4", -label => 'Ergebnis');
my $start = $mw->Button( -text => "Start", -command => sub {
$note->raise( 3 );
∋
})->pack;
MainLoop;
sub ni{
sleep(1);
print "huhu";
}