Leser: 8
|< 1 2 >| | 12 Einträge, 2 Seiten |
1
2
3
4
$text = "1\n2\n3";
$headline[$j] = $MainFrame->Button(
-text => $text, -width => 2, -height => 6,
);
1
2
3
4
5
6
7
$bf->Button(-text => 'ab\ncd',
-command => sub{print "\a"},
)
->pack(-side => 'right',
-expand => 1,
-fill => 'x',
);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl
use diagnostics;
use strict;
use warnings;
use Tk;
my $mw = new MainWindow;
$mw->title('Button mit geteiltem Text?');
$mw->Button(-text => 'ab\ncd',
-command => sub{print "\a"},
)
->pack(-side => 'right',
-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 strict;
use warnings;
use Tk;
my $mw = new MainWindow;
$mw->title('Button mit geteiltem Text?');
$mw->Button(-text => "ab\ncd",
-command => sub{print "\a"},
)
->pack(-side => 'right',
-expand => 1,
-fill => 'x',
);
MainLoop();
|< 1 2 >| | 12 Einträge, 2 Seiten |