Leser: 1
|< 1 2 3 >| | 21 Einträge, 3 Seiten |
-side => 'left'
1 2 3 4 5 6
$f1->Label(-text=>'Startpfad: ')->grid(-row=>0,-column=>0); $pfad = $f1->Entry(-width=>50)->grid(-row=>0,-column=>1); $f1->Label(-text=>'Suchstring: ')->grid(-row=>1,-column=>0); $Such = $f1->Entry(-width=>50)->grid(-row=>1,-column=>1); $f1->Label(-text=>'Ersetzungsstring: ')->grid(-row=>2,-column=>0); $Erse = $f1->Entry(-width=>50)->grid(-row=>2,-column=>1);
1
2
3
4
5
+$f1-Frame-----------------------------------------------+
| Startpfad: [ ] |
| Suchstring: [ ] |
| Ersetzungsstring: [ ] |
+--------------------------------------------------------+
1
2
3
4
5
+$f1-Frame-----------------------------------------------+
|Startpfad: [ ] |
|Suchstring: [ ] |
|Ersetzungsstring: [ ] |
+--------------------------------------------------------+
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl
use diagnostics;
use strict;
use warnings;
use Tk;
my $mw = Tk::MainWindow->new();
my $f1 = $mw->Frame()->grid();
$f1->Label(-text=>'Startpfad: ')->grid(-row=>0,-column=>0);
my $pfad = $f1->Entry(-width=>50)->grid(-row=>0,-column=>1);
$f1->Label(-text=>'Suchstring: ')->grid(-row=>1,-column=>0);
my $Such = $f1->Entry(-width=>50)->grid(-row=>1,-column=>1);
$f1->Label(-text=>'Ersetzungsstring: ')->grid(-row=>2,-column=>0);
my $Erse = $f1->Entry(-width=>50)->grid(-row=>2,-column=>1);
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/perl
use diagnostics;
use strict;
use warnings;
use Tk;
my $mw = Tk::MainWindow->new();
my $f1 = $mw->Frame()
->pack(-side => 'top',
-expand => 1,
-fill => 'both',
);
$f1->Label(-text => 'Startpfad: ',
-width => 20,
-anchor => 'w',
)
->pack(-side => 'left',
-expand => 1,
-fill => 'x',
);
my $pfad = $f1->Entry(-width => 50
)
->pack(-side => 'left',
-expand => 1,
-fill => 'x',
);
my $f2 = $mw->Frame()
->pack(-side => 'top',
-expand => 1,
-fill => 'both',
);
$f2->Label(-text => 'Suchstring: ',
-width => 20,
-anchor => 'w',
)
->pack(-side => 'left',
-expand => 1,
-fill => 'x',
);
my $Such = $f2->Entry(-width => 50,
)
->pack(-side => 'left',
-expand => 1,
-fill => 'x',
);
my $f3 = $mw->Frame()
->pack(-side => 'top',
-expand => 1,
-fill => 'both',
);
$f3->Label(-text => 'Ersetzungsstring: ',
-width => 20,
-anchor => 'w',
)
->pack(-side => 'left',
-expand => 1,
-fill => 'x',
);
my $Erse = $f3->Entry(-width => 50,
)
->pack(-side => 'left',
-expand => 1,
-fill => 'x',
);
MainLoop();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl
use diagnostics;
use strict;
use warnings;
use Tk;
my $mw = Tk::MainWindow->new();
my $f1 = $mw->Frame()->grid();
$f1->Label(-text=>'Startpfad: ',-width => 20,-anchor => 'w')->grid(-row=>0,-column=>0);
my $pfad = $f1->Entry(-width=>50)->grid(-row=>0,-column=>1);
$f1->Label(-text=>'Suchstring: ',-width => 20,-anchor => 'w')->grid(-row=>1,-column=>0);
my $Such = $f1->Entry(-width=>50)->grid(-row=>1,-column=>1);
$f1->Label(-text=>'Ersetzungsstring: ',-width => 20,-anchor => 'w')->grid(-row=>2,-column=>0);
my $Erse = $f1->Entry(-width=>50)->grid(-row=>2,-column=>1);
MainLoop();
QuoteKaum macht man es richtig - schon funktioniert es!
|< 1 2 3 >| | 21 Einträge, 3 Seiten |