]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/StaticBox.py
log wxChoice events in the same format as wxComboBox ones to make it simpler to compa...
[wxWidgets.git] / wxPython / demo / StaticBox.py
CommitLineData
e79c8a7c
RD
1
2import wx
3
4#----------------------------------------------------------------------
5
6class TestPanel(wx.Panel):
7 def __init__(self, parent, log):
8 self.log = log
9 wx.Panel.__init__(self, parent, -1)
10
11 box = wx.StaticBox(self, -1, "This is a wx.StaticBox")
12 bsizer = wx.StaticBoxSizer(box, wx.VERTICAL)
13
71699da4 14 t = wx.StaticText(self, -1, "Controls placed \"inside\" the box are really its siblings")
e79c8a7c
RD
15 bsizer.Add(t, 0, wx.TOP|wx.LEFT, 10)
16
17
18 border = wx.BoxSizer()
19 border.Add(bsizer, 1, wx.EXPAND|wx.ALL, 25)
20 self.SetSizer(border)
21
22
23#----------------------------------------------------------------------
24
25def runTest(frame, nb, log):
26 win = TestPanel(nb, log)
27 return win
28
29#----------------------------------------------------------------------
30
31
32
33overview = """<html><body>
34<h2><center>wx.StaticBox</center></h2>
35
36This control draws a box and can be used to group other controls.
37
38</body></html>
39"""
40
41
42
43if __name__ == '__main__':
44 import sys,os
45 import run
46 run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])
47