]> git.saurik.com Git - wxWidgets.git/commitdiff
new test
authorRobin Dunn <robin@alldunn.com>
Fri, 12 Jan 2007 18:39:39 +0000 (18:39 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 12 Jan 2007 18:39:39 +0000 (18:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/tests/test_stattextFont.py [new file with mode: 0644]

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()
+