import wximport wx.lib.imagebrowser as imagebrowserapp = wx.PySimpleApp()dialog = imagebrowser.ImageDialog(None) if dialog.ShowModal() == wx.ID_OK: print "You Selected File: " + dialog.GetFile() dialog.Destroy()