开发者

Open file with Python DirSelector

开发者 https://www.devze.com 2023-02-20 05:45 出处:网络
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.

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 o开发者_StackOverflowpen both, files and directories.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消