Blanket font setting?

RGK Ross at no.thanks.spammers
Thu Sep 18 12:55:01 EDT 2008


I'm doing an app with the AUI manager capabilities (using some of the 
wxPython demo's for help).  All is well, except I'm a bit disappointed 
with the font management.

The default font for all the widgets (TextCtrl's, StaticText's etc) are 
a bit large for my design intent and as I try to adjust that, it appears 
I have to do a

   font = wx.SystemSettings_GetFont(wx.SYS_SYSTEM_FONT)
   font.SetPointSize(9)

Then, for every texty thing:

   myTextThing.setfont(font)
   someOtherThing.setfont(font)

Thus if I have hundreds of texty things, I've got to assign that 
hundreds of times.

Is there any sort of blanket font setting, perhaps like:

   wx.SystemSettings_SetFont(font)   #this doesn't exist

that could set everything with one fell swoop?

Thanks for your attention...

Ross.



More information about the Python-list mailing list