From fac81a39b1ecba832230a9c60d17945a56ab29f8 Mon Sep 17 00:00:00 2001 From: Kazuya O'moto Date: Sat, 12 Oct 2024 16:06:13 +0900 Subject: [PATCH] Fix RecursionError in platebtn bitmap getters --- wx/lib/platebtn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wx/lib/platebtn.py b/wx/lib/platebtn.py index cf27fc531..66582c348 100644 --- a/wx/lib/platebtn.py +++ b/wx/lib/platebtn.py @@ -482,7 +482,7 @@ def GetBitmapDisabled(self): :return: :class:`wx.Bitmap` or None """ - return self.BitmapDisabled + return self._bmp['disable'] def GetBitmapLabel(self): @@ -491,7 +491,7 @@ def GetBitmapLabel(self): :return: :class:`wx.Bitmap` or None """ - return self.BitmapLabel + return self._bmp['enable'] # GetBitmap Aliases for BitmapButton api GetBitmapFocus = GetBitmapLabel