From 26ceb9f067f52b4eae05e271c58fcbf8255ad266 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 4 Feb 2015 13:23:30 -0800 Subject: [PATCH] We don't have DoEraseBackground yet... --- wx/lib/buttons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wx/lib/buttons.py b/wx/lib/buttons.py index b87e70fa..ad1a37a1 100644 --- a/wx/lib/buttons.py +++ b/wx/lib/buttons.py @@ -518,7 +518,7 @@ class GenButton(wx.Control): c = wx.MacThemeColour(1) # 1 == kThemeBrushDialogBackgroundActive brush = wx.Brush(c) elif wx.Platform == "__WXMSW__": - if self.DoEraseBackground(dc): + if hasattr(self, 'DoEraseBackground') and self.DoEraseBackground(dc): brush = None elif myDef and not parDef: colBg = self.GetParent().GetBackgroundColour()