From: Robin Dunn Date: Tue, 7 Nov 2006 01:47:10 +0000 (+0000) Subject: fixed indentation error X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7a0a389e1910d16d39b638a2257d19fca5ec1f15 fixed indentation error git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/wx/lib/stattext.py b/wxPython/wx/lib/stattext.py index 54d7c64e93..3bc9a4c483 100644 --- a/wxPython/wx/lib/stattext.py +++ b/wxPython/wx/lib/stattext.py @@ -138,9 +138,10 @@ class GenStaticText(wx.PyControl): dc.Clear() if self.IsEnabled(): - dc.SetTextForeground(self.GetForegroundColour()) - else: - dc.SetTextForeground(wx.SystemSettings.GetColour(wx.SYS_COLOUR_GRAYTEXT)) + dc.SetTextForeground(self.GetForegroundColour()) + else: + dc.SetTextForeground(wx.SystemSettings.GetColour(wx.SYS_COLOUR_GRAYTEXT)) + dc.SetFont(self.GetFont()) label = self.GetLabel() style = self.GetWindowStyleFlag()