]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/stattext.py
Compile fixes for Panther
[wxWidgets.git] / wxPython / wx / lib / stattext.py
index fddbf4e60e1ffa5e723c7bbbb34625ce8cc2e041..3bc9a4c483ff4394f30fca81afcc24603d8e09ea 100644 (file)
@@ -137,7 +137,11 @@ class GenStaticText(wx.PyControl):
             dc.SetBackground(backBrush)
             dc.Clear()
 
-        dc.SetTextForeground(self.GetForegroundColour())
+        if self.IsEnabled():
+            dc.SetTextForeground(self.GetForegroundColour())
+        else:
+            dc.SetTextForeground(wx.SystemSettings.GetColour(wx.SYS_COLOUR_GRAYTEXT))
+            
         dc.SetFont(self.GetFont())
         label = self.GetLabel()
         style = self.GetWindowStyleFlag()