[wxPython-users] Changing styles for wx.StaticBox

Robin Dunn robin at alldunn.com
Sun Sep 9 14:27:44 PDT 2007


Tim Grove wrote:
> Hi folks!
> 
> I want to be able to change the styles of a wx.StaticBox, such as 
> font/border weight and font/border colour, but I can't seem to manage 
> it. Changing the normal style flags don't seem to make it appear any 
> different to the normal style.
> 
> self.some_staticbox = wx.StaticBox(self, -1, "Some Name", 
> style=wx.RAISED_BORDER)
> 
> I'm running wxPython2.8 under Python2.5 and Windows XP Pro. Any 
> suggestions welcome.

You'll need to draw it yourself.  The native static widgets are fairly 
limited.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list