X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/96de41c2c53c013293d452e3af55dd9c76e7030a..b9ac87bc5cbe46227195e32c44e25831f8206e3c:/wxPython/demo/RowColSizer.py diff --git a/wxPython/demo/RowColSizer.py b/wxPython/demo/RowColSizer.py index 433a7aac6e..1a5ac5119e 100644 --- a/wxPython/demo/RowColSizer.py +++ b/wxPython/demo/RowColSizer.py @@ -10,11 +10,13 @@ class TestPanel(wxPanel): wxPanel.__init__(self, parent, -1) sizer = RowColSizer() - text = "This sizer lays out it's items by row and column that are"\ - "specified explicitly when the item is added to the sizer.\n"\ - "Grid cells with nothing in them are supported and column-"\ - "or row-spanning is handled as well. Growable rows and\n"\ - "columns are specified just like the wxFlexGridSizer." + text = "This sizer lays out it's items by row and column "\ + "that are specified explicitly when the item is \n"\ + "added to the sizer. Grid cells with nothing in "\ + "them are supported and column- or row-spanning is \n"\ + "handled as well. Growable rows and columns are "\ + "specified just like the wxFlexGridSizer." + sizer.Add(wxStaticText(self, -1, text), row=1, col=1, colspan=5) sizer.Add(wxTextCtrl(self, -1, "(3,1)"), flag=wxEXPAND, row=3, col=1) @@ -48,7 +50,7 @@ class TestPanel(wxPanel): sizer.AddSpacer(10,10, pos=(13,1)) self.SetSizer(sizer) - self.SetAutoLayout(true) + self.SetAutoLayout(True) #---------------------------------------------------------------------- @@ -65,3 +67,9 @@ import wxPython.lib.rcsizer overview = wxPython.lib.rcsizer.__doc__ + +if __name__ == '__main__': + import sys,os + import run + run.main(['', os.path.basename(sys.argv[0])]) +