我正在尝试在创建按钮后添加/删除 BitmapButton 的边框。我还没有找到任何工作示例来更新 BitmapButton 的外观。说
self.btn = wx.BitmapButton(self.panel, wx.ID_ANY, bmp, pos=(...))
self.Bind(wx.EVT_BUTTON, self.OnClick, self.btn)
Run Code Online (Sandbox Code Playgroud)
然后在 OnClick
def OnClick(self):
# what should be here to give / remove the border of the button being clicked
Run Code Online (Sandbox Code Playgroud)
谢谢