4 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use strict;
use warnings;
use Tk;
my $mw = MainWindow -> new();
my $text = $mw -> Text() -> pack();
$text -> tagConfigure('fett', -font => [-weight => 'bold']);
$text -> tagConfigure('gross', -font => [-size => '24']);
$text -> tagConfigure('anders', -font => [-family => 'Courier']);
$text -> insert('end', "Jedes TextWidget kann ");
$text -> insert('end', "fette ", 'fett');
$text -> insert('end', "grosse ", 'gross');
$text -> insert('end', "oder ");
$text -> insert('end', "andere ", 'anders');
$text -> insert('end', "Schrift enthalten");
MainLoop;
4 Einträge, 1 Seite |