打开多个文件并立即接受提示

时间:2015-05-15 13:49:43

标签: python linux windows file

我尝试使用pygtk创建应用程序。 在应用程序中,我下载多个文件并用另一个应用程序打开它们。每次打开文件都会提示确认打开文件。 我的目标是从我的应用程序自动进行确认,这样用户就不必重复确认每个文件。 有没有办法做到这一点?

我申请的开头部分:

if platform.system().lower().startswith('linux'):
        subprocess.call(["xdg-open", path])

elif platform.system().lower().startswith('windows'):
        os.startfile(path)

非常感谢!

0 个答案:

没有答案