new test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
15
wxPython/tests/test_stattextFont.py
Normal file
15
wxPython/tests/test_stattextFont.py
Normal file
@@ -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()
|
||||
|
Reference in New Issue
Block a user