I am sorry if my question is not understandable.
Anyways, I have this code:
from tkinter import *
root = Tk()
root.title("My Window")
# Adding a text widget thing.
text = Text(root, foreground='black', background='white', font=("Consolas", 16))
text.pack(expand=1, fill=BOTH)
# a while true loop.
while True:
text.delete(1.0, END)
text.insert(END, "This is a text in a loop")
# Calling the Python tkinter's mainloop.
root.mainloop()
Each time I try to run the code above, it doesn't show the Window, instead, it runs the code in the while True loop.
So the main question is, Is there a way to make Python show the window (I mean execute the code root.mainloop(), and then execute the while True loop's code?
Any help or answers would be much appreciated!
Thank you!