I hope you are doing great this new year, I am creating a GUI program (Python3 Tkinter) which displays the output of another python script into a big entry.
Situation:
My GUI has only 1 button which execute this command:
python external_python_script.py -h
However I want the whole output of this command execution to be displayed into an entry, and not into the CMD.
So far this is my solution, but not effective:
command_textbox = os.system(python external_python_script.py -h) #simply execute the code in brackets
script_output.insert('1.0',command_textbox) #the whole output of the script will be displayed in this entry
What happened when I did this?
In the GUI program, when I pressed the button, into the Entry it is displayed only this 0
Any help is greatly appreciated, thank you!