diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index ab5e8d6612..61bb75c685 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -112,6 +112,7 @@ _treeList = [ 'SpinCtrl', 'SplitterWindow', 'StaticBitmap', + 'StaticBox', 'StaticText', 'StatusBar', 'StockButtons', diff --git a/wxPython/demo/StaticBox.py b/wxPython/demo/StaticBox.py new file mode 100644 index 0000000000..0ee42bae2a --- /dev/null +++ b/wxPython/demo/StaticBox.py @@ -0,0 +1,47 @@ + +import wx + +#---------------------------------------------------------------------- + +class TestPanel(wx.Panel): + def __init__(self, parent, log): + self.log = log + wx.Panel.__init__(self, parent, -1) + + box = wx.StaticBox(self, -1, "This is a wx.StaticBox") + bsizer = wx.StaticBoxSizer(box, wx.VERTICAL) + + t = wx.StaticText(self, -1, "Controls placed \"inside\" the box are really it's siblings") + bsizer.Add(t, 0, wx.TOP|wx.LEFT, 10) + + + border = wx.BoxSizer() + border.Add(bsizer, 1, wx.EXPAND|wx.ALL, 25) + self.SetSizer(border) + + +#---------------------------------------------------------------------- + +def runTest(frame, nb, log): + win = TestPanel(nb, log) + return win + +#---------------------------------------------------------------------- + + + +overview = """
+