From 4366f1b66027224ef4de1bd0a1521ed6015ee5b8 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 26 Mar 2007 18:52:55 +0000 Subject: [PATCH] Use disabled state if needed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/lib/buttons.py | 2 ++ 1 file changed, 2 insertions(+) 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):