开发者

GTK+ Filechooser to open both files and folders

开发者 https://www.devze.com 2023-01-29 10:34 出处:网络
How do I get my filechooser to be able to select both 开发者_Python百科files and folders when the open button on the filechooser dialog is hit ? I want to squeeze the ability to open files and filders

How do I get my filechooser to be able to select both 开发者_Python百科files and folders when the open button on the filechooser dialog is hit ? I want to squeeze the ability to open files and filders in just one filechooser. I am using GTK+ and Python.


I was thinking about this, and although in your comments you've decided to go another route, I do have a suggestion: Write your own file chooser subclass of the GTK+ one and provide two "Open" buttons, one to "Open File" and another to "Open Directory". That would eliminate the ambiguity discussed above.

0

精彩评论

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

关注公众号