Blanket font setting?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RGK

    Blanket font setting?

    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.SystemSettin gs_GetFont(wx.S YS_SYSTEM_FONT)
    font.SetPointSi ze(9)

    Then, for every texty thing:

    myTextThing.set font(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.SystemSettin gs_SetFont(font ) #this doesn't exist

    that could set everything with one fell swoop?

    Thanks for your attention...

    Ross.
  • giltay@gmail.com

    #2
    Re: Blanket font setting?

    On Sep 18, 12:55 pm, RGK <R...@no.thanks .spammerswrote:
    Is there any sort of blanket font setting, perhaps like:
    >
       wx.SystemSettin gs_SetFont(font )   #this doesn't exist
    >
    that could set everything with one fell swoop?
    >
    Thanks for your attention...
    >
    Ross.
    I do this by setting the font in each frame (or dialog); the font
    propogates to its descendants.



    Geoff G-T

    Comment

    Working...