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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -