]> git.saurik.com Git - wxWidgets.git/blame - wxPython/tests/test_stattextFont.py
Tweaks needed to update to current CVS
[wxWidgets.git] / wxPython / tests / test_stattextFont.py
CommitLineData
f1c5e92f
RD
1import wx
2
3def doStuff(stattxt):
4 print stattxt.GetSize(), stattxt.GetBestSize()
5 stattxt.SetFont(wx.FFont(24, wx.SWISS))
6 print stattxt.GetSize(), stattxt.GetBestSize()
7
8app = wx.App(False)
9f = wx.Frame(None)
10p = wx.Panel(f)
11f.Show()
12s = wx.StaticText(p, -1, "This is a test", (20,20))
13wx.CallLater(2000, doStuff, s)
14app.MainLoop()
15