code: def get_DIR(self):
          
          dlg = wx.DirDialog(self, "Choose a directory:", defaultPath=self.currentDirectory,
                             style=wx.DD_DEFAULT_STYLE | wx.DD_NEW_DIR_BUTTON | wx.DD_CHANGE_DIR)
          ok = self.show_dlg(dlg)
          if ok == wx.ID_OK:
              new_WD = dlg.GetPath()
              dlg.Destroy()
          else:
              new_WD = os.getcwd()
              dlg.Destroy()
          return new_WD
docs: Dialog that allows user to choose a working directory