how to display script output in text browser
-
I want to create an ui with a button when clicked will launch a python script and I want to display its output in text browser below it.The output in text window should look as if it runs in terminal. I'm new in Qt I tried to do the same with QProcess but failed.
-
Hi and welcome to devnet,
Are you writing your code in Python ?
-
Then why run the other script using QProcess ? Since everything is Python you can import the methods you want / need and execute them directly.
-
Hi @yugapatil
Maybe you can follow this tutorial using QProcess:
https://www.mfitzp.com/tutorials/qprocess-external-programs/Regards
-
Then why run the other script using QProcess ? Since everything is Python you can import the methods you want / need and execute them directly.
@SGaist the other python script that I'm trying to call is so large that integrating it into the same file does not seem to be practical to me. Plus that other python script uses libraries that cannot be compiled with pyinstaller to create an executable.
-
I did not say that you should integrate it, just use it.
-
There's no need for classes, you can import methods, variables etc from other Python modules.
-
There's no need for classes, you can import methods, variables etc from other Python modules.