I am trying to make a windows canvas type rectangle, here is an image if you are having issues understanding what i mean,
Is there any way todo this in wxpython? ( also, is there a way to set it to automatically adjust to the window width -20px?, so a radius around the window, and will adjust to the users window size.

EDIT: I asked on the wxPython IRC channel and a fellow named “r4z” came up with the following edit to my code which worked for me on Windows 7.
Alternately, you might look at the wx.StaticBox widget.
EDIT #2: You could also just set the frame’s style like this and skip the whole OnSize business: