if dlg.ShowModal() != wx.ID_OK:
    print('You Cancelled The Dialog!')
dlg.Destroy()
paths = dlg.GetPaths()
for path in enumerate(paths):
    print(path[1])
directory = path[1].replace('OS (C:)', 'C:')
print(directory)
for file in os.listdir(directory):
    print(file)
dlg.Destroy()
app.MainLoop()
Ask multiple directories dialog in Tkinter