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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -