- button = wxBitmapButton(self, id, image, size=self.TOOL_SIZE,
- style=wxBU_AUTODRAW|wxNO_BORDER|wxWANTS_CHARS)
+ from wxPython.lib import buttons
+ button = buttons.wxGenBitmapButton(self, id, image, size=self.TOOL_SIZE,
+ style=wxNO_BORDER|wxWANTS_CHARS)
+ button.SetBezelWidth(0)