BoxSizer changing the border colour

I have staticBoxSizer insdie a wx.StaticBox.
I want to change the border colour of the StaticBox. How to do it?

I saw some answers, of more than 10 years ago stating this can’t be done. I am hoping now we have this functionality.

Hi Tanmay,

I don’t think we do have the option.
wx.StaticBox is a simple control that allows you to change the BackgroundColour and ForegroundColour, but the line color is set to light gray by default.

So is there like no way to do it?
No workaround also?