Merged the wxPy_newswig branch into the HEAD branch (main trunk)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -8,11 +8,12 @@ resourceText = r'''<?xml version="1.0"?>
|
||||
<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="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>
|
||||
@@ -25,11 +26,8 @@ and is loaded by a using a subclass attribute of the object tag.</label>
|
||||
|
||||
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)
|
||||
|
||||
|
Reference in New Issue
Block a user