Skip to content
Advertisement

How to change wx.sbSizer label color and size in python?

I’m creating a GUI and I’m using several wx.sbSizer to group the widgets. However I need to change the font and the color of the wx.sbSizer Label (‘MyApp’) and although I have searched I cannot find out how to do it.

Here’s a minimal working example:

JavaScript

Thank you in adavnce for any help.

Advertisement

Answer

You are already using sbSizer1_2_1.GetStaticBox() to access the box within the sizer.
Simply use that to get the box, then utilise the methods available for that widget, see below:

JavaScript

enter image description here

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement