X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/361cef5fdbfb0f39bdeadb9a90850151fa8c0ced..1c3a6972f471bd792eb8d812049c68bccd56a2a9:/wxPython/demo/wxXmlResourceHandler.py

diff --git a/wxPython/demo/wxXmlResourceHandler.py b/wxPython/demo/wxXmlResourceHandler.py
index 82acf0b734..87d8598447 100644
--- a/wxPython/demo/wxXmlResourceHandler.py
+++ b/wxPython/demo/wxXmlResourceHandler.py
@@ -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>
@@ -29,6 +29,7 @@ class MyBluePanel(wxPanel):
         # silly example.  It could just as easily have been done in
         # the resource.
         self.SetBackgroundColour("BLUE")
+        self.SetForegroundColour("WHITE")
 
 
 # To do it the more complex way, (see below) we need to write the
@@ -43,6 +44,8 @@ class PreMyBluePanel(wxPanel):
     def Create(self, parent, id, pos, size, style, name):
         wxPanel.Create(self, parent, id, pos, size, style, name)
         self.SetBackgroundColour("BLUE")
+        self.SetForegroundColour("WHITE")
+
 
 #----------------------------------------------------------------------
 
@@ -150,7 +153,7 @@ class TestPanel(wxPanel):
         sizer.Add(panel, 1, wxEXPAND|wxALL, 5)
 
         self.SetSizer(sizer)
-        self.SetAutoLayout(true)
+        self.SetAutoLayout(True)
 
 
 #----------------------------------------------------------------------