X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e4a197e4c60e461b8068b0619692ea083e30b8b..fd3f2efe791cf99c2e4944cd615f02a5502ed93e:/wxPython/demo/wxGenericDirCtrl.py diff --git a/wxPython/demo/wxGenericDirCtrl.py b/wxPython/demo/wxGenericDirCtrl.py index 7f338e67df..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,7 +30,7 @@ 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) @@ -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])]) +