]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/buttons.py
Remove const bool
[wxWidgets.git] / wxPython / wx / lib / buttons.py
index a7290cbbde15e1b258725eed6a71dd84ba89325c..53c908a53f05f57971811e2f4fd32a1baa4720fc 100644 (file)
@@ -589,6 +589,8 @@ class ThemedGenButton(GenButton):
             state = 0
         else:
             state = wx.CONTROL_PRESSED
+        if not self.IsEnabled():
+            state = wx.CONTROL_DISABLED
         wx.RendererNative.Get().DrawPushButton(self, dc, rect, state)
  
 class ThemedGenBitmapButton(ThemedGenButton, GenBitmapButton):