Merge pull request #2622 from komoto48g/fix-pbbmp

Fix RecursionError in platebtn bitmap getters
This commit is contained in:
Scott Talbert
2024-10-14 20:36:32 -04:00
committed by GitHub

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