]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/FancyText.py
corrected Unicode conversion when replacing shared library extension with ".rsrc"
[wxWidgets.git] / wxPython / demo / FancyText.py
index f504ccc21c2fc784f6e7a8e04fdfc78d51e5477f..1d3b46c58186b02d8ba1b8754e07b581cfa027c8 100644 (file)
@@ -20,10 +20,10 @@ class TestPanel(wxPanel):
     def OnPaint(self, evt):
         dc = wxPaintDC(self)
 
-        sz = fancytext.getExtent(test_str, dc)
-        fancytext.renderToDC(test_str, dc, 20, 20)
+        w, h = fancytext.GetExtent(test_str, dc)
+        fancytext.RenderToDC(test_str, dc, 20, 20)
 
-        fancytext.renderToDC(test_str2, dc, 20, 20 + sz.height + 10)
+        fancytext.RenderToDC(test_str2, dc, 20, 20 + h + 10)
 
 
 #----------------------------------------------------------------------
@@ -38,3 +38,11 @@ def runTest(frame, nb, log):
 
 overview = fancytext.__doc__.replace("<", "&lt;")
 
+
+
+
+if __name__ == '__main__':
+    import sys,os
+    import run
+    run.main(['', os.path.basename(sys.argv[0])])
+