I am making a python IDE and I wanted to print the output of a file's code to the output text box. My current code doesnt work, it executes in the shell and the output is to the box is "None". Code:
from tkinter import *
input_box = Text()
output_box = Text()
def execute():
code = input_box.get(1.0, END)
out = exec(code)
output.insert(1.0, str(out))