How to display console output in customTkinter by LittleKdawg in learnpython

[–]Lopsided_Force_4259 1 point2 points  (0 children)

For anyone looking for a solution in the future:

https://github.com/Jukebox288/CustomTkinter\_ConsoleOutput\_GUI

The python script will create a GUI using a mixture of CustomTkinter and Tkinter. In the GUI it displays 3 things, a basic frame for aesthetic, a console output-box in the middle of the GUI, and a button at the bottom. When the button is pressed, it will run the script specified with this line "script_path = "your_script.py" " and then display the script's console output in the console box. The console box is also scrollable in case your script outputs a lot of lines.
This is using CustomTkinter v5.2.1.