Refresh after changing the label or the font.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-12-20 21:59:22 +00:00
parent d9c9481f26
commit 4549842ab6

View File

@@ -64,6 +64,8 @@ class wxGenStaticText(wxPyControl):
style = self.GetWindowStyleFlag()
if not style & wxST_NO_AUTORESIZE:
self.SetSize(self.GetBestSize())
self.Refresh()
def SetFont(self, font):
"""
@@ -74,6 +76,7 @@ class wxGenStaticText(wxPyControl):
style = self.GetWindowStyleFlag()
if not style & wxST_NO_AUTORESIZE:
self.SetSize(self.GetBestSize())
self.Refresh()
def DoGetBestSize(self):