python - Open multiple files and immediately accept the prompt -
i'm trying create application using pygtk. in application i'm downloading multiple files , opening them application. each opening of file results in prompt confirmation open file. goal make confirmation automatically app, way user won't obliged repeatedly confirm each file. there way ?
the opening part of application:
if platform.system().lower().startswith('linux'): subprocess.call(["xdg-open", path]) elif platform.system().lower().startswith('windows'): os.startfile(path)
thanks lot !
Comments
Post a Comment