parameters: (self, evt)
docstring: Open the choose directory dialog for selecting what
          path to do a search in files in.
          @param evt: wx.EVT_BUTTON
docstring_summary: Open the choose directory dialog for selecting what
          path to do a search in files in.
          @param evt: wx.EVT_BUTTON
docstring_tokens: Open the choose directory dialog for selecting what path to do a search in files in . @param evt : wx . EVT_BUTTON
function: def OnChooseDir(self, evt):
          """Open the choose directory dialog for selecting what
          path to do a search in files in.
          @param evt: wx.EVT_BUTTON
  
          """
          if evt.Id == ID_CHOOSE_DIR:
              dname = self._dgetter()
              dlg = wx.DirDialog(self, _("Choose Search Folder"), defaultPath=dname)
              if dlg.ShowModal() == wx.ID_OK:
                  path = dlg.GetPath()
                  if path is not None and len(path):
                      idx = self.AddLookinPath(path)
                      self.SetLookinSelection(idx)
                  self._UpdateContext()
              dlg.Destroy()
          else:
              evt.Skip()
function_tokens: def OnChooseDir ( self , evt ) : if evt . Id == ID_CHOOSE_DIR : dname = self . _dgetter ( ) dlg = wx . DirDialog ( self , _ ( "Choose Search Folder" ) , defaultPath = dname ) if dlg . ShowModal ( ) == wx . ID_OK : path = dlg . GetPath ( ) if path is not None and len ( path ) : idx = self . AddLookinPath ( path ) self . SetLookinSelection ( idx ) self . _UpdateContext ( ) dlg . Destroy ( ) else : evt . Skip ( )