wamster
wamster

Reputation: 310

How can I remove the line in a staticBoxSizer in wxPython 2.8?

I am modifying an existing code base that has a GUI with a staticBoxSizer. One of the features of staticBoxSizer is that it includes a decorative border line around the sizer, and a label at the top. In the image below, we have two staticBoxSizers, one with label 'Name:' and the other with label 'buttons:'

Is there a simple setting I can change so that the bordering line is either gone or of a different color? I need to keep the label however

The staticBoxSizer uses a staticBox object as an argument to the constructor. I think I can do this just fine by just using boxSizers, but that would involve some more reworking.

Thanks in advance!

Upvotes: 0

Views: 454

Answers (1)

RobinDunn
RobinDunn

Reputation: 6306

A wx.StaticBoxSizer is intended to be used with a wx.StaticBox. If you don't want that then use a different kind of sizer, or sizers, adding a wx.StaticText for the label.

Upvotes: 1

Related Questions