wx.FileDialog to open folder or wx.DirDialog to open file

Hi all,

I am wondering is it possible to use wx.FileDialog to select folder (or wx.DirDialog to select file)? Does wx has something more "generic"? I need a single dialog to allow user to select either file or folder or both. Please advise. Thank You.

Regards,
-JC Tan