The call function blocks until the sub-process exits. Therefore, the GUI event loop is prevented from running. Try spawning it as a background process.
call
proc = subprocess.Popen(["notepad++.exe", "-n", line, file])
548k questions
547k answers
4 comments
86.3k users