From e79c8a7c103c3945287e87a5c6f17a3ca4392561 Mon Sep 17 00:00:00 2001
From: Robin Dunn <robin@alldunn.com>
Date: Mon, 7 Feb 2005 20:53:50 +0000
Subject: [PATCH] Add a sample of a wx.StaticBox

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 wxPython/demo/Main.py      |  1 +
 wxPython/demo/StaticBox.py | 47 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+)
 create mode 100644 wxPython/demo/StaticBox.py

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 = """<html><body>
+<h2><center>wx.StaticBox</center></h2>
+
+This control draws a box and can be used to group other controls.
+
+</body></html>
+"""
+
+
+
+if __name__ == '__main__':
+    import sys,os
+    import run
+    run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])
+
-- 
2.47.2