code: def highlight_button(self, event):
          
          wind = event.GetEventObject()
          pos = wind.GetPosition()
          size = wind.GetSize()
          try:
              dc = wx.PaintDC(self)
          except wx._core.PyAssertionError:
              # if it's not a native paint event, we can't us wx.PaintDC
              dc = wx.ClientDC(self)
          dc.SetPen(wx.Pen('red', 5, wx.SOLID))
          dc.DrawRectangle(pos[0], pos[1], size[0], size[1])
          event.Skip()
docs: Draw a red highlight line around the event object