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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#!/usr/bin/perl
use Tk;
# geometrie
my ($width, $height) = (1024, 768);
# couleurs
my $frame1color = 'yellow';
my $frame1Xcolor = 'red';
my $frame1XXcolor = 'orange';
my $mw = MainWindow->new;
$mw->geometry($width.'x'.$height);
$mw->title('IvyMon');
my $frame1 =
$mw->Frame(-background => $frame1color)->pack(-fill => 'both', -expand => 1);
my $frame11 =
$frame1->Frame(-background => $frame1Xcolor)->pack(-fill => 'both', -expand => 1,
-padx => 5, -pady => 5);
my $frame111clients =
$frame11->Frame(-background => $frame1XXcolor,
-width => 150)->pack(-fill => 'both',
-padx => 10,
-pady => 10,
-side => 'left',
-expand => 0);
my $frame112messages =
$frame11->Frame(-background => $frame1XXcolor,
-relief => 'sunken',
-bd => 5)->pack(-fill => 'both',
-padx => 10,
-pady => 10,
-side => 'right',
-expand => 1);
my $frame12bindings =
$frame1->Frame(-background => $frame1Xcolor,
-height => 100)->pack(-fill => 'both',
-padx => 5,
-pady => 5,
-side => 'bottom',
-expand => 0);
$frame112messages->Text(-state => 'disabled')->pack(-fill => 'both',
-expand => 1);
MainLoop;
|