X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/299647acac7960652aadb008775429c1f8ea9b8d..a60a5499953215f46062de58c0fe5df7b3a27a60:/wxPython/demo/LayoutConstraints.py diff --git a/wxPython/demo/LayoutConstraints.py b/wxPython/demo/LayoutConstraints.py index 29ffeaf080..3484fe5dc7 100644 --- a/wxPython/demo/LayoutConstraints.py +++ b/wxPython/demo/LayoutConstraints.py @@ -1,7 +1,3 @@ -# 11/19/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Updated for wx namespace -# import wx @@ -60,7 +56,7 @@ class TestLayoutConstraints(wx.Panel): lc.centreY.SameAs (self.panelA, wx.CentreY) lc.height.AsIs () lc.width.PercentOf (self.panelA, wx.Width, 50) - b.SetConstraints(lc); + b.SetConstraints(lc) b = wx.Button(self.panelB, 100, ' Panel B ') lc = wx.LayoutConstraints() @@ -68,7 +64,7 @@ class TestLayoutConstraints(wx.Panel): lc.right.SameAs (self.panelB, wx.Right, 4) lc.height.AsIs () lc.width.AsIs () - b.SetConstraints(lc); + b.SetConstraints(lc) self.panelD = wx.Window(self.panelC, -1, style=wx.SIMPLE_BORDER) self.panelD.SetBackgroundColour(wx.GREEN) @@ -82,14 +78,14 @@ class TestLayoutConstraints(wx.Panel): lc.left.RightOf (self.panelD) lc.height.AsIs () lc.width.AsIs () - b.SetConstraints(lc); + b.SetConstraints(lc) lc = wx.LayoutConstraints() lc.bottom.PercentOf (self.panelC, wx.Height, 50) lc.right.PercentOf (self.panelC, wx.Width, 50) lc.height.SameAs (b, wx.Height) lc.width.SameAs (b, wx.Width) - self.panelD.SetConstraints(lc); + self.panelD.SetConstraints(lc) def OnButton(self, event): @@ -148,5 +144,5 @@ the constraint is wxAsIs, the dimension will not be changed. if __name__ == '__main__': import sys,os import run - run.main(['', os.path.basename(sys.argv[0])]) + run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])