X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3bfec747ddf7b27e6f41f0117cd5cd6755fe021..8d87b3e77f8f821515379452ba97ea632843b277:/wxPython/demo/template.py?ds=sidebyside diff --git a/wxPython/demo/template.py b/wxPython/demo/template.py index 4ccfcd4c4b..8be058bfee 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) #---------------------------------------------------------------------- @@ -23,3 +23,11 @@ overview = """ """ + + + +if __name__ == '__main__': + import sys,os + import run + run.main(['', os.path.basename(sys.argv[0])]) +