![]() |
![]() |
6 Einträge, 1 Seite |
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
#!/usr/bin/perl
use Tk;
@namen = ( "Allgemein", "Zeitung" );
@orte = ( "E:\\Eigene Dateien\\Programme\\Scrutator\\img\\minilupe.gif", "E:\\Eigene Dateien\\Programme\\Scrutator\\img\\zeitung.gif" );
my $top = MainWindow -> new(-background => 'black', -height => '768', -width => '1024');
$top -> title('Scrutator');
# Navigationsframe
my $navi = $top -> Frame (-background => 'black');
$navi -> place(-x=>'3p', -y => '3p');
# Erster Button - Lupe
my $lupe = $navi->Photo(-file => 'E:\\Eigene Dateien\\Programme\\Scrutator\\img\\lupe.gif');
$navi->Button(-image => $lupe, -relief=>'flat', -background => 'black', -activebackground => 'red')->grid(-row=>'0', -column=>'0');
# Zweiter Button - Ordner
my $ordner = $navi->Photo(-file => 'E:\\Eigene Dateien\\Programme\\Scrutator\\img\\ordner.gif');
$navi->Button(-image => $ordner, -relief=>'flat', -background => 'black', -activebackground => 'red')->grid(-row=>'1', -column=>'0');
# Profilframe
my $profilframe = $top -> Frame (-background => 'sky blue', -height => '249p', -width => '250p');
$profilframe -> place(-x=>'3p', -y => '140p');
# Profilframe
my $profilframe = $top -> Frame (-background => 'sky blue', -height => '249p', -width => '250p');
$profilframe -> place(-x=>'3p', -y => '140p');
# Profiltext
# Bilder definieren
my $allgemein = $profilframe->Photo(-file => $orte[0]);
my $zeitung = $profilframe->Photo(-file => $orte[1]);
# Überschrift
$profilframe->Label( -text=>"Meine Profile", -background => 'sky blue', -font=>'{Bimini} 14 {bold}' )->place(-x=>'5');
# Allgemein
$profilframe->Label( -image => $allgemein, -background => 'sky blue' )->place(-x=>'5', -y => '50');
$profilframe->Button( -text=>$namen[0], -background => 'sky blue', -font=>'{Bimini} 12 {bold}', -relief=>'flat', -activebackground => 'yellow' )->place(-x=>'28p', -y => '50');
# Zeitung
$profilframe->Label( -image => $zeitung, -background => 'sky blue' )->place(-x=>'5', -y => '85');
$profilframe->Button(-text=>$namen[1], -background => 'sky blue', -font=>'{Bimini} 12 {bold}', -relief=>'flat', -activebackground => 'yellow' )->place(-x=>'28p', -y => '85');
MainLoop;
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 -w use strict; use Tk; my @namen = ( "Allgemein", "Zeitung" ); #my @orte = ( "E:\\Eigene Dateien\\Programme\\Scrutator\\img\\minilupe.gif", "E:\\Eigene Dateien\\Programme\\Scrutator\\img\\zeitung.gif" ); my $top = MainWindow -> new(-background => 'black', -height => '768', -width => '1024'); $top -> title('Scrutator'); # Navigationsframe my $navi = $top -> Frame (-background => 'black'); $navi -> place(-x=>'3p', -y => '3p'); # Erster Button - Lupe my $lupe = $navi->Photo(-file => 'c:\test.gif'); #my $lupe = $navi->Photo(-file => 'E:\\Eigene Dateien\\Programme\\Scrutator\\img\\lupe.gif'); $navi->Button(-image => $lupe, -relief=>'flat', -background => 'black', -activebackground => 'red')->grid(-row=>'0', -column=>'0'); # Zweiter Button - Ordner #my $ordner = $navi->Photo(-file => 'E:\\Eigene Dateien\\Programme\\Scrutator\\img\\ordner.gif'); #$navi->Button(-image => $ordner, -relief=>'flat', -background => 'black', -activebackground => 'red')->grid(-row=>'1', -column=>'0'); # Profilframe my $profilframe = $top -> Frame (-background => 'sky blue', -height => '249p', -width => '250p'); $profilframe -> place(-x=>'3p', -y => '140p'); # Profilframe my $profilframe = $top -> Frame (-background => 'sky blue', -height => '249p', -width => '250p'); $profilframe -> place(-x=>'3p', -y => '140p'); # Profiltext # Bilder definieren #my $allgemein = $profilframe->Photo(-file => $orte[0]); #my $zeitung = $profilframe->Photo(-file => $orte[1]); # Überschrift $profilframe->Label( -text=>"Meine Profile", -background => 'sky blue', -font=>'{Bimini} 14 {bold}' )->place(-x=>'5'); # Allgemein #$profilframe->Label( -image => $allgemein, -background => 'sky blue' )->place(-x=>'5', -y => '50'); #$profilframe->Button( -text=>$namen[0], -background => 'sky blue', -font=>'{Bimini} 12 {bold}', -relief=>'flat', -activebackground => 'yellow' )->place(-x=>'28p', -y => '50'); # Zeitung #$profilframe->Label( -image => $zeitung, -background => 'sky blue' )->place(-x=>'5', -y => '85'); $profilframe->Button(-text=>$namen[1], -background => 'sky blue', -font=>'{Bimini} 12 {bold}', -relief=>'flat', -activebackground => 'yellow' )->place(-x=>'28p', -y => '85'); MainLoop;
![]() |
![]() |
6 Einträge, 1 Seite |