parameters: (self, evt)
docstring: Change the mode
          @param evt: wx.EVT_BUTTON
docstring_summary: Change the mode
          @param evt: wx.EVT_BUTTON
docstring_tokens: Change the mode @param evt : wx . EVT_BUTTON
function: def OnButton(self, evt):
          """Change the mode
          @param evt: wx.EVT_BUTTON
  
          """
          eobj = evt.GetEventObject()
          if eobj in (self.find, self.replace):
              self.SetBoxMode(eobj == self.find)
          else:
              evt.Skip()
function_tokens: def OnButton ( self , evt ) : eobj = evt . GetEventObject ( ) if eobj in ( self . find , self . replace ) : self . SetBoxMode ( eobj == self . find ) else : evt . Skip ( )