X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6fa68946ec0528d9388c92c24b5e9e31c6c46f31..bc93670d3b2b69ea2cdd799444b57dce24b8be94:/wxPython/demo/wxXmlResourceSubclass.py diff --git a/wxPython/demo/wxXmlResourceSubclass.py b/wxPython/demo/wxXmlResourceSubclass.py index 1729900b44..e3dce189f1 100644 --- a/wxPython/demo/wxXmlResourceSubclass.py +++ b/wxPython/demo/wxXmlResourceSubclass.py @@ -8,11 +8,12 @@ resourceText = r''' + subclass is specified as "moduleName.ClassName" Try changing + the classname to one that does not exist and see what happens --> 200,100 - + 10,10 @@ -25,11 +26,8 @@ and is loaded by a using a subclass attribute of the object tag. class MyBluePanel(wxPanel): def __init__(self): - #print "MyBluePanel.__init__" p = wxPrePanel() - self.this = p.this - self.thisown = p.thisown - self._setOORInfo(self) + self.PostCreate(p) EVT_WINDOW_CREATE(self, self.OnCreate)