[PLUG] Tk Configuration
Roderick A. Anderson
raanders at acm.org
Fri Mar 25 21:55:07 UTC 2005
On Fri, 25 Mar 2005, Rich Shepard wrote:
> On Fri, 25 Mar 2005, Roderick A. Anderson wrote:
>
> > A quick look in "Learning Perl/Tk" gave this ( untested ) code.
> >
> > $widget->fontConfigure(fontname, -size=> 24);
>
> Rod,
>
> And where is this done, please?
Since it has been months ( or years ) since I did any serious perl/Tk I'm
kind of shooting in the dark.
Let's see.
After a bit of time fiddling and lunch I decided for my interpretation of
your stated want/need that you should use the -font attribute in the menu
creation/definition.
my $mw = MainWindow->new;
$mw->title( "Yada Yada" );
...
$menu1 = $mw->Menu( ... -font => ['courier', 24] ... )->pack( );
# ^^^^^^^^^^^^^^^^^^^^^^^^
...
Good luck,
Rod
--
"Open Source Software - You usually get more than you pay for..."
"Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL"
More information about the PLUG
mailing list