Skip to content

Commit

Permalink
Merge pull request #2622 from komoto48g/fix-pbbmp
Browse files Browse the repository at this point in the history
Fix RecursionError in platebtn bitmap getters
  • Loading branch information
swt2c authored Oct 15, 2024
2 parents 9a76a36 + fac81a3 commit 9d69e78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wx/lib/platebtn.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def GetBitmapDisabled(self):
:return: :class:`wx.Bitmap` or None
"""
return self.BitmapDisabled
return self._bmp['disable']


def GetBitmapLabel(self):
Expand All @@ -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
Expand Down

0 comments on commit 9d69e78

Please sign in to comment.