X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c6c593e88d75fe89320eafddeb547b3c058c34d8..ed8e1ecb3fdabbbe5062ebba2a50a2bc8d1e2c76:/wxPython/demo/wxGenericDirCtrl.py?ds=sidebyside diff --git a/wxPython/demo/wxGenericDirCtrl.py b/wxPython/demo/wxGenericDirCtrl.py index 6799b1f93f..d20cb85818 100644 --- a/wxPython/demo/wxGenericDirCtrl.py +++ b/wxPython/demo/wxGenericDirCtrl.py @@ -18,9 +18,9 @@ class TestPanel(wxPanel): filter="All files (*.*)|*.*|Python files (*.py)|*.py") sz = wxFlexGridSizer(cols=3, hgap=5, vgap=5) - sz.Add(35, 35) # some space above - sz.Add(35, 35) - sz.Add(35, 35) + sz.Add((35, 35)) # some space above + sz.Add((35, 35)) + sz.Add((35, 35)) sz.Add(txt1) sz.Add(txt2) @@ -30,14 +30,14 @@ class TestPanel(wxPanel): sz.Add(dir2, 0, wxEXPAND) sz.Add(dir3, 0, wxEXPAND) - sz.Add(35,35) # some space below + sz.Add((35,35)) # some space below sz.AddGrowableRow(2) sz.AddGrowableCol(0) sz.AddGrowableCol(1) sz.AddGrowableCol(2) self.SetSizer(sz) - self.SetAutoLayout(true) + self.SetAutoLayout(True) #---------------------------------------------------------------------- @@ -57,3 +57,10 @@ overview = """\ This control can be used to place a directory listing (with optional files) on an arbitrary window. """ + + +if __name__ == '__main__': + import sys,os + import run + run.main(['', os.path.basename(sys.argv[0])]) +