Open file with Python DirSelector

2019-08-16 07:31发布

is it somehow possible to open a file (instead of a directory) with Python's DirSelector. It's also fine to make a wx.FileSelector to open also a directory.

I just need one dialog window to open both, files and directories.

1条回答
Emotional °昔
2楼-- · 2019-08-16 08:24

You might be able to use the wx.GenericDirCtrl for this, although it's a little ugly. There's also the pure python MultiDirDialog widget which can be found in wx.lib.agw.multidirdialog. While it doesn't appear to support the display and selection of files now, since it's pure Python, you can probably hack it.

查看更多
登录 后发表回答