X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/169f3a3d6ff1d73a71e8b03f04f7e252c619a630..3eddc6bc00bcbdea23d52a8724f46ad56768f8b6:/wxPython/wx/lib/buttons.py diff --git a/wxPython/wx/lib/buttons.py b/wxPython/wx/lib/buttons.py index a7290cbbde..53c908a53f 100644 --- a/wxPython/wx/lib/buttons.py +++ b/wxPython/wx/lib/buttons.py @@ -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):