X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/72797a7da3f02b1b71949d4ea8827529a2c8c7b1..2706d2fedee4cfc34ba0c838bd157bc0d9718ce1:/wxPython/demo/template.py diff --git a/wxPython/demo/template.py b/wxPython/demo/template.py index 9be55905b9..3019d1f42e 100644 --- a/wxPython/demo/template.py +++ b/wxPython/demo/template.py @@ -1,12 +1,12 @@ -from wxPython.wx import * +import wx # This module uses the new wx namespace #---------------------------------------------------------------------- -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 = """ 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:])