X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e738329a95a4e70602e37058b5da4ea08ef5df6..e79c8a7c103c3945287e87a5c6f17a3ca4392561:/wxPython/demo/StaticBox.py?ds=inline 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 = """
+