Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当点击文件选择器对话框上的打开按钮时,如何让我的文件选择器能够同时选择文件和文件夹?我想在一个文件选择器中压缩打开文件和文件的能力。我正在使用 GTK+ 和 Python。
我正在考虑这个问题,尽管在您的评论中您决定走另一条路,但我确实有一个建议:编写您自己的 GTK+ 文件选择器子类,并提供两个“打开”按钮,一个用于“打开文件”另一个是“打开目录”。这将消除上面讨论的歧义。