- button = wxBitmapButton(self, id, image, size=self.TOOL_SIZE,
- style=wxBU_AUTODRAW|wxNO_BORDER|wxWANTS_CHARS)
- EVT_KEY_DOWN(button, self.OnKeyDown)
- EVT_KEY_UP(button, self.OnKeyUp)
+ from wx.lib import buttons
+ button = buttons.GenBitmapButton(self, id, image, size=self.TOOL_SIZE,
+ style=wx.NO_BORDER|wx.WANTS_CHARS)
+ button.SetBezelWidth(0)
+ wx.EVT_KEY_DOWN(button, self.OnKeyDown)
+ wx.EVT_KEY_UP(button, self.OnKeyUp)