diff --git a/wxPython/wxPython/lib/stattext.py b/wxPython/wxPython/lib/stattext.py index eeef81764e..61d4eb70ab 100644 --- a/wxPython/wxPython/lib/stattext.py +++ b/wxPython/wxPython/lib/stattext.py @@ -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):