i´m trying to execute a script as i open a tkinter window. i want the outputs of the script to be printed in continuous on the tkinter window, without i´ve to press any command button. i´ve already read some questions in the site, took some ideas but with no success for what i want. Thanks for any help.
# code for tkinter window
from tkinter import *
root = Tk()
loop_active = True
while loop_active:
root.update()
root["bg"] = "black"
root.title('windowtitle')
root.update_idletasks()
width = root.winfo_screenwidth()
heigth = root.winfo_screenheight()
root(root)
root.mainloop()