MultiDirDialog is not working

Joined
Jan 13, 2011
Messages
2
Reaction score
0
Folks,

I have just started working with python.

I'm currently using tkFileDialog.askdirectory() to select a single
directory. I would like to be able to select multiple directories.

tkFileDialog.askopenfilenames() seems to do this for files.

Now I am using wxPython for select multiple directories.

I have created some sample program, code is below.

def onMultiDir(self, event):
"""
Create and show the MultiDirDialog
"""
dlg = MDD.MultiDirDialog(self, title="Choose a directory:",
defaultPath=self.currentDirectory,
agwStyle=0)
if dlg.ShowModal() == wx.ID_OK:
paths = dlg.GetPaths()
print "You chose the following file(s):"
for path in paths:
print path
dlg.Destroy()

I have used above link to create my sample program.

But still I am not able to select multiple directory.

I would appreciate your helping to resolve my problem.

Thank you in advance.

Best regards,
Sujay Kher
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top