Fix RecursionError in platebtn bitmap getters

This commit is contained in:
Kazuya O'moto
2024-10-12 16:06:13 +09:00
parent b6b28eeca5
commit fac81a39b1

View File

@@ -482,7 +482,7 @@ class PlateButton(wx.Control):
:return: :class:`wx.Bitmap` or None
"""
return self.BitmapDisabled
return self._bmp['disable']
def GetBitmapLabel(self):
@@ -491,7 +491,7 @@ class PlateButton(wx.Control):
:return: :class:`wx.Bitmap` or None
"""
return self.BitmapLabel
return self._bmp['enable']
# GetBitmap Aliases for BitmapButton api
GetBitmapFocus = GetBitmapLabel