From 4549842ab6e09ad1dbbae3330daa7a5f7e5d5fd7 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 20 Dec 2002 21:59:22 +0000 Subject: [PATCH] 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 --- wxPython/wxPython/lib/stattext.py | 3 +++ 1 file changed, 3 insertions(+) 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):