I would recommend using wxPython built-in widgets like wx.FileDialog or filebrowsebutton
Here is a simple example that allows you to select multiple files:
def onOpenFile(self, event): """ Create and show the Open FileDialog """ dlg = wx.FileDialog( self, message="Choose a file", defaultDir=self.currentDirectory, defaultFile="", wildcard=wildcard, style=wx.OPEN | wx.MULTIPLE | wx.CHANGE_DIR ) 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 would recommend downloading the wxPython demo to check out its example of this widget and the other one I mentioned.
source share