]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/template.py
Little tweaks to match recent wxWidgets updates
[wxWidgets.git] / wxPython / demo / template.py
index 9be55905b9c4d91931e988a9d468f9bad45e7b64..e63d503c89f6f1abbbba5d50ad0b2d656468325c 100644 (file)
@@ -1,12 +1,12 @@
 
-from wxPython.wx import *
+import wx
 
 #----------------------------------------------------------------------
 
-class TestPanel(wxPanel):
+class TestPanel(wx.Panel):
     def __init__(self, parent, log):
         self.log = log
-        wxPanel.__init__(self, parent, -1)
+        wx.Panel.__init__(self, parent, -1)
 
 #----------------------------------------------------------------------
 
@@ -29,5 +29,5 @@ overview = """<html><body>
 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:])