diff options
Diffstat (limited to 'sandbox/allreliefs.pl')
-rw-r--r-- | sandbox/allreliefs.pl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sandbox/allreliefs.pl b/sandbox/allreliefs.pl index 939e5ba..2a19151 100644 --- a/sandbox/allreliefs.pl +++ b/sandbox/allreliefs.pl @@ -7,10 +7,11 @@ use Tk::Zinc; use strict; my ($grp,, $s, $i); -my $defaultfont = '-b&h-lucida-bold-r-normal-*-*-140-*-*-p-*-iso10646-1'; +my $defaultfont = '-adobe-helvetica-bold-r-normal-*-100-*-*-*-*-*-*'; my $mw = MainWindow->new(); my $zinc = $mw->Zinc(-width => 700, -height => 300, -render => 1, + -backcolor => "red", # this will be transparent in the doc )->pack(); @@ -25,6 +26,7 @@ $zinc->add('rectangle', $grp, [0, 0, 70, 50], $zinc->add('text', $grp, -text => 'raised', -anchor => 'center', + -font => $defaultfont, -position => [35, -10], -tags => ['attrs']); $zinc->translate($grp, 20, 30); @@ -39,11 +41,11 @@ foreach $s (('sunken', 'ridge', 'groove', -relief => $s); $i++; if ($i == 5) { - $zinc->translate($grp, -3*90, 80); + $zinc->translate($grp, -3*100, 80); $i = 1; } else { - $zinc->translate($grp, 90, 0); + $zinc->translate($grp, 100, 0); } } |