X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/169f3a3d6ff1d73a71e8b03f04f7e252c619a630..75d9e502238df95fa53c0030b1fac0d4f43e4025:/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):