Problems? Is your data what you think it is? | |
PerlMonks |
Re: How Can My Perl/Tk Program use a Defined Font for All Widgets?by johngg (Canon) |
on Dec 09, 2018 at 12:06 UTC ( [id://1227002]=note: print w/replies, xml ) | Need Help?? |
I didn't know about the $mw->optionAdd('*font' => 'sans 12'); method, ++ tybalt89. What I have been doing is to use fontCreate() to create a font for the main window then add that font to the options hashes that I apply when creating widgets.
The optionAdd() method seems simpler so I will most likely use it for new code. Update: Changed example to correct the senior moment of choosing a widget without fonts ... what a dummy :-/ Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|