in reply to Setting fonts in Tk Menu's
use Tk::FontDialog; my $fd = $mw->FontDialog( -nicefont => 0, -title => 'Select Font', -applycmd => \&apply_font, -fixedfontsbutton => 1, -nicefontsbutton => 1, ); sub apply_font { my $font = shift; if ( defined $font ) { $rotext->configure( -font => $font ); $mw->RefontTree( -font => $font ); $top->RefontTree( -font => $font ); } }
|
|---|