merrymonk has asked for the wisdom of the Perl Monks concerning the following question:
use Tk; use strict; my (%char_num, $jc, $jc_mod, %wg, %wg_res, $jrow, $jcol, $cou, $wing_s +tr, $wing_num); my ($size, $weight, $slant, $underline, $overstrike); my $mw = MainWindow->new(-title => 'wingdings Test'); my $f = $mw->Frame->grid(-row => 0, -column => 0); my $family = 'Wingdings'; $size = 18; $jrow = 0; $jcol = 0; $wing_str = ''; $wing_num = ''; for ($jc = 129; $jc <= 150; $jc ++) { $wing_str .= chr($jc) . ' '; $wing_num .= $jc . ' '; } $f->Label(-text => $wing_num, -justify => 'center', -bg => + 'white', -font => [-size => 15])->grid(-row => $jrow, -column => $jc +ol, -padx => 1); $wg{Label}= $f->Label(-text => $wing_str, -justify => 'center', -bg => + 'white')->grid(-row => $jrow+1, -column => $jcol, -padx => 1); $wg{Entry} = $f->Entry(-textvariable => $wing_str, -width =>35, -justi +fy => 'center')->grid(-row => $jrow + 2, -column => $jcol); &apply_font; MainLoop; sub apply_font { my $jwg; foreach $jwg (sort {$a <=> $b} keys %wg) { $wg{$jwg}->configure(-font => [-family => $family, -size => $size, ], ); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Wingdings viewing problem in Tk application
by Anonymous Monk on Jul 13, 2011 at 12:01 UTC | |
by merrymonk (Hermit) on Jul 13, 2011 at 18:52 UTC | |
|
Re: Wingdings viewing problem in Tk application
by Anonymous Monk on Jul 13, 2011 at 18:26 UTC | |
by merrymonk (Hermit) on Jul 13, 2011 at 18:54 UTC |