X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b64274c77a190cd44daaf15e0f96c0e3ee864113..092d7f88f6819e52dd8ea69d66e474571e527eba:/wxPython/demo/SizedControls.py?ds=sidebyside

diff --git a/wxPython/demo/SizedControls.py b/wxPython/demo/SizedControls.py
index 63b237a3e7..857e88f4a7 100644
--- a/wxPython/demo/SizedControls.py
+++ b/wxPython/demo/SizedControls.py
@@ -310,7 +310,9 @@ def runTest(frame, nb, log):
     win = TestPanel(nb, log)
     return win
 
-if __name__ == "__main__":  
-    app = wx.PySimpleApp()
-    dlg = FormDialog()
-    dlg.ShowModal()
+
+if __name__ == '__main__':
+    import sys,os
+    import run
+    run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])
+