Python TKinter Text GUI and redirect Console Print Statement | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Python TKinter Text GUI and redirect Console Print Statement

Hi I need help with Python. I am using Python TKinter GUI and I am trying to pipe the print statement from the console to the GUI. Here is my function: for path in execute(["C:/file.bat", "a"]): print(path, end="") text.insert(END, path) Is there an easy way to do this?

18th Jul 2018, 6:46 PM
Karzan
1 Answer