]> git.saurik.com Git - wxWidgets.git/blob - wxPython/tests/test_stattextFont.py
allow the UTF8 build to treat C locale as UTF8, too, it's a 7bit subset of it, so...
[wxWidgets.git] / wxPython / tests / test_stattextFont.py
1 import wx
2
3 def doStuff(stattxt):
4 print stattxt.GetSize(), stattxt.GetBestSize()
5 stattxt.SetFont(wx.FFont(24, wx.SWISS))
6 print stattxt.GetSize(), stattxt.GetBestSize()
7
8 app = wx.App(False)
9 f = wx.Frame(None)
10 p = wx.Panel(f)
11 f.Show()
12 s = wx.StaticText(p, -1, "This is a test", (20,20))
13 wx.CallLater(2000, doStuff, s)
14 app.MainLoop()
15