projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
applied SourceForge patch # 854330 for Filedialog Unicode fixes
[wxWidgets.git]
/
wxPython
/
demo
/
wxXmlResourceSubclass.py
diff --git
a/wxPython/demo/wxXmlResourceSubclass.py
b/wxPython/demo/wxXmlResourceSubclass.py
index 1729900b442855404b9817ef49fb0a9746dec4ef..e3dce189f17a6c6a8e2a25880f8f524e0fc3d062 100644
(file)
--- a/
wxPython/demo/wxXmlResourceSubclass.py
+++ b/
wxPython/demo/wxXmlResourceSubclass.py
@@
-8,11
+8,12
@@
resourceText = r'''<?xml version="1.0"?>
<resource>
<!-- Notice that the class IS a standard wx class, and a custom
<resource>
<!-- Notice that the class IS a standard wx class, and a custom
- subclass is specified as "moduleName.ClassName" -->
+ subclass is specified as "moduleName.ClassName" Try changing
+ the classname to one that does not exist and see what happens -->
<object class="wxPanel" subclass="wxXmlResourceSubclass.MyBluePanel" name="MyPanel">
<size>200,100</size>
<object class="wxPanel" subclass="wxXmlResourceSubclass.MyBluePanel" name="MyPanel">
<size>200,100</size>
- <object class="wxStaticText" name="label1"
subclass="wxPython.wx.wxPreStaticText"
>
+ <object class="wxStaticText" name="label1">
<label>This blue panel is a class derived from wxPanel
and is loaded by a using a subclass attribute of the object tag.</label>
<pos>10,10</pos>
<label>This blue panel is a class derived from wxPanel
and is loaded by a using a subclass attribute of the object tag.</label>
<pos>10,10</pos>
@@
-25,11
+26,8
@@
and is loaded by a using a subclass attribute of the object tag.</label>
class MyBluePanel(wxPanel):
def __init__(self):
class MyBluePanel(wxPanel):
def __init__(self):
- #print "MyBluePanel.__init__"
p = wxPrePanel()
p = wxPrePanel()
- self.this = p.this
- self.thisown = p.thisown
- self._setOORInfo(self)
+ self.PostCreate(p)
EVT_WINDOW_CREATE(self, self.OnCreate)
EVT_WINDOW_CREATE(self, self.OnCreate)