]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxXmlResourceHandler.py
mention ShouldInheritColours() change
[wxWidgets.git] / wxPython / demo / wxXmlResourceHandler.py
index dda5005d4efd644e38745327991bfa92cfd35194..87d859844723db3b26de15e82ad9b987682de915 100644 (file)
@@ -11,7 +11,7 @@ resourceText = r'''<?xml version="1.0"?>
 
 <object class="MyBluePanel" name="MyPanel">
     <size>200,100</size>
-    <object class="wxStaticText" name="lable1">
+    <object class="wxStaticText" name="label1" subclass="wxPython.wx.wxPreStaticText">
         <label>This blue panel is a class derived from wxPanel,\nand is loaded by a custom wxXmlResourceHandler.</label>
         <pos>10,10</pos>
     </object>
@@ -153,7 +153,7 @@ class TestPanel(wxPanel):
         sizer.Add(panel, 1, wxEXPAND|wxALL, 5)
 
         self.SetSizer(sizer)
-        self.SetAutoLayout(true)
+        self.SetAutoLayout(True)
 
 
 #----------------------------------------------------------------------