1
#!/usr/local/bin/perl -w
5
my $mw = MainWindow->new;
7
my $t = $mw->Text(-background => 'yellow', -width => 30, -height => 10);
8
$t->pack(-expand => 1, -fill => 'both');
10
$t->insert('1.0','This is Text','Atag');
11
$t->tagConfigure('Atag',-background => 'green');
13
$mw->Button(-text => "Change Colour",
14
-command => sub { $t->tagConfigure('Atag',-background => undef) }