Leser: 1
![]() |
![]() |
9 Einträge, 1 Seite |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
for my $i (1..int($checkbuttonzahl/3)) { # jetzt erstmal einen Frame erzeugen $frame = $page1->Frame(-background => 'sky blue') ->pack(-side => "top", -fill => "x", -expand => 1); # dann kann man die 3 nächsten Suchmaschinen eintragen for my $j (0..2) { $checkbuttons[($i-1)*3+$j] = $frame->Checkbutton(-text => $av_searches[($i-1)*3+$j], -font => '{Bimini} 12 {bold}', -background => 'sky blue', -activebackground => 'sky blue', -onvalue => (($i-1)*3+$j)+1, -command => sub { testus(); }, -variable => \$suchers[($i-1)*3+$j])->pack(-side => "left"); } }
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
sub testus
{
print "Aktiviert: ", join(", ", grep({ $_ ne "0" } @suchers)), "\n";
}
for my $i (1..int($checkbuttonzahl/3))
{
# jetzt erstmal einen Frame erzeugen
$frame = $page1->Frame(-background => 'sky blue')
->pack(-side => "top", -fill => "x", -expand => 1);
# dann kann man die 3 nächsten Suchmaschinen eintragen
for my $j (0..2)
{
$checkbuttons[($i-1)*3+$j] = $frame->Checkbutton(-text => $av_searches[($i-1)*3+$j],
-font => '{Bimini} 12 {bold}',
-background => 'sky blue',
-activebackground => 'sky blue',
-onvalue => (($i-1)*3+$j)+1,
-command => sub { testus(); },
-variable => \$suchers[($i-1)*3+$j])->pack(-side => "left");
}
}
$string =~ s/(.*){5}/$1\n/g;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
my $dsc; my $desctitel; my $beschreibungstitel; my $descpt; # .... # .... my $beschreibungstitel = $suchpopupframe->Label(-textvariable=> \$desctitel, -font=>'{Bimini} 12 {bold} {underline}', -background=>'#F0E68C')->place(-x=>'480', -y => '96'); my $descpt = $suchpopupframe->Label(-textvariable=> \$dsc, -font=>'{Bimini} 12 {bold}', -background=>'#F0E68C')->place(-x=>'480', -y => '120'); # .... sub testus { my @searcherarray = grep { $_ ne "0" } @suchers; for(my $i = 0;$i < @searcherarray;$i++) { $searcherarray[$i] -= 1; $desctitel = $av_searches[$searcherarray[$i]]; $dsc = $germandescription[$searcherarray[$i]]; $dsc =~ s/(.*){5}/$1\n/g; } }
$string =~ s/(.{5})/$1\n/g;
![]() |
![]() |
9 Einträge, 1 Seite |