Panel Border

I've designed some wx.Panel's that I want to use to fill the client area
of one side of a wx.SplitterWindow.

After porting my application to Windows (2000), I think it would look
nicer of there was a small gap around the outside of the wx.Panel's.
The wx.Panel's are already built up using wx.Sizer's.

What's the easiest (or best) way to implement this border? I see two
possibilities.

1) add another wx.BoxSizer to be the new top level sizer for the panel
and add the current top level sizer to it with a border. This seems
like overkill.

2) revisit each of the elements added to the current top level sizer and
figure out which edges are outside and add borders to those edges.

I'm hoping there's something I've overlooked.

Thanks,
Mark

Mark Erbaugh wrote:

I've designed some wx.Panel's that I want to use to fill the client area
of one side of a wx.SplitterWindow.

After porting my application to Windows (2000), I think it would look
nicer of there was a small gap around the outside of the wx.Panel's.
The wx.Panel's are already built up using wx.Sizer's.

What's the easiest (or best) way to implement this border? I see two
possibilities.

1) add another wx.BoxSizer to be the new top level sizer for the panel
and add the current top level sizer to it with a border. This seems
like overkill.

That is a perfectly legitimate approach, and that was one of the original use-cases planned for when sizers were first created.

ยทยทยท

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