summaryrefslogtreecommitdiff
path: root/src/ivymon0
diff options
context:
space:
mode:
authoretienne2000-12-27 13:13:42 +0000
committeretienne2000-12-27 13:13:42 +0000
commit08fcc3b3043cdd30ac61c6d2b643a1d9228561dc (patch)
tree0a43adb8cb1e67a04607341d86d7053dab16e01c /src/ivymon0
parent23abb4b87c7e40ed259dd02f653516f60e55ade4 (diff)
downloadivymon-08fcc3b3043cdd30ac61c6d2b643a1d9228561dc.zip
ivymon-08fcc3b3043cdd30ac61c6d2b643a1d9228561dc.tar.gz
ivymon-08fcc3b3043cdd30ac61c6d2b643a1d9228561dc.tar.bz2
ivymon-08fcc3b3043cdd30ac61c6d2b643a1d9228561dc.tar.xz
Initial revision
Diffstat (limited to 'src/ivymon0')
-rwxr-xr-xsrc/ivymon050
1 files changed, 50 insertions, 0 deletions
diff --git a/src/ivymon0 b/src/ivymon0
new file mode 100755
index 0000000..08bd7d4
--- /dev/null
+++ b/src/ivymon0
@@ -0,0 +1,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;