@Axel-Erfurt
If the terminal is only required for error messages, you could also use subprocess.check_output and display error messages in a wx MessageBox.
subproces.check_output
actually blocks until the process exits, and raises an error if the return code is non-zero: the caller is not able to access the process'stdout
orstderr
until completion. That might not be a fit for @luciorgomes' use case.
I've made some tests with subproces.check_output and os.popen().read(). It can hangs the app for the wine vsts. Runing it in a terminal is the better choice.
Statistics: Posted by luciorgomes — Fri Apr 18, 2025 2:31 am