]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/tests/test_stattextFont.py
new test
[wxWidgets.git] / wxPython / tests / test_stattextFont.py
diff --git a/wxPython/tests/test_stattextFont.py b/wxPython/tests/test_stattextFont.py
new file mode 100644 (file)
index 0000000..6b2b4aa
--- /dev/null
@@ -0,0 +1,15 @@
+import wx
+
+def doStuff(stattxt):
+    print stattxt.GetSize(), stattxt.GetBestSize()
+    stattxt.SetFont(wx.FFont(24, wx.SWISS))
+    print stattxt.GetSize(), stattxt.GetBestSize()
+
+app = wx.App(False)
+f = wx.Frame(None)
+p = wx.Panel(f)
+f.Show()
+s = wx.StaticText(p, -1, "This is a test", (20,20))
+wx.CallLater(2000, doStuff, s)
+app.MainLoop()
+