]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxStaticText.py
Remove the test for parent window type when checking if to give a
[wxWidgets.git] / wxPython / demo / wxStaticText.py
index dc558eed08e9015074ed3f759a2db585814d59bf..f143ddb5cb250e26365c3b36434463dde58efa5b 100644 (file)
@@ -1,7 +1,7 @@
 
 from wxPython.wx import *
 
 
 from wxPython.wx import *
 
-USE_GENERIC = 1
+USE_GENERIC = 0
 
 if USE_GENERIC:
     from wxPython.lib.stattext import wxGenStaticText as wxStaticText
 
 if USE_GENERIC:
     from wxPython.lib.stattext import wxGenStaticText as wxStaticText
@@ -24,7 +24,7 @@ class TestPanel(wxPanel):
 
         str = "This is a different font."
         text = wxStaticText(self, -1, str, (20, 100))
 
         str = "This is a different font."
         text = wxStaticText(self, -1, str, (20, 100))
-        font = wxFont(18, wxSWISS, wxNORMAL, wxNORMAL, false, "Arial")
+        font = wxFont(18, wxSWISS, wxNORMAL, wxNORMAL, False, "Arial")
         w, h, d, e = self.GetFullTextExtent(str, font)
         text.SetFont(font)
         text.SetSize(wxSize(w, h))
         w, h, d, e = self.GetFullTextExtent(str, font)
         text.SetFont(font)
         text.SetSize(wxSize(w, h))