From c652c9484d75e7c26c827c4518029d51a63a8e08 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 21 Jan 2003 23:14:59 +0000 Subject: [PATCH] Explicitly refresh when enable is called so the display will update. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wxPython/lib/buttons.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wxPython/wxPython/lib/buttons.py b/wxPython/wxPython/lib/buttons.py index d28c281fd0..e739c77659 100644 --- a/wxPython/wxPython/lib/buttons.py +++ b/wxPython/wxPython/lib/buttons.py @@ -133,6 +133,11 @@ class wxGenButton(wxPyControl): return self.IsShown() and self.IsEnabled() + def Enable(self, enable=true): + wxPyControl.Enable(self, enable) + self.Refresh() + + def SetBezelWidth(self, width): """Set the width of the 3D effect""" self.bezelWidth = width