]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/StaticBox.py
   4 #---------------------------------------------------------------------- 
   6 class TestPanel(wx
.Panel
): 
   7     def __init__(self
, parent
, log
): 
   9         wx
.Panel
.__init
__(self
, parent
, -1) 
  11         box 
= wx
.StaticBox(self
, -1, "This is a wx.StaticBox") 
  12         bsizer 
= wx
.StaticBoxSizer(box
, wx
.VERTICAL
) 
  14         t 
= wx
.StaticText(self
, -1, "Controls placed \"inside\" the box are really its siblings") 
  15         bsizer
.Add(t
, 0, wx
.TOP|wx
.LEFT
, 10) 
  18         border 
= wx
.BoxSizer() 
  19         border
.Add(bsizer
, 1, wx
.EXPAND|wx
.ALL
, 25) 
  23 #---------------------------------------------------------------------- 
  25 def runTest(frame
, nb
, log
): 
  26     win 
= TestPanel(nb
, log
) 
  29 #---------------------------------------------------------------------- 
  33 overview 
= """<html><body> 
  34 <h2><center>wx.StaticBox</center></h2> 
  36 This control draws a box and can be used to group other controls. 
  43 if __name__ 
== '__main__': 
  46     run
.main(['', os
.path
.basename(sys
.argv
[0])] + sys
.argv
[1:])