code: def select_multi_directory_dialog():
      
      import wx.lib.agw.multidirdialog as MDD
  
      app = wx.App(0)
      dlg = MDD.MultiDirDialog(None, title="Select directories", defaultPath=os.getcwd(),
                               agwStyle=MDD.DD_MULTIPLE | MDD.DD_DIR_MUST_EXIST)
  
      if dlg.ShowModal() != wx.ID_OK:
          dlg.Destroy()
          return
  
      paths = dlg.GetPaths()
  
      dlg.Destroy()
      app.MainLoop()
  
      return paths
docs: Opens a directory selection dialog
          Style - specifies style of dialog (read wx documentation for information)