+ 1
why does the root window keep disappearing? Check my code please.
from tkinter import* root = Tk() entry_1 = Entry(root, width = 30) entry_2 = Entry(root, width = 30) entry_1.pack() entry_2.pack() while True: get = input('anything') If you get rid of the "while True:" loop the root window appears, but when you include it, it disappears.
1 Antwort
+ 3
exactly
1) use root.mainloop()
2) you need threads
the app uses an infinite loop for gui
you need an infinite loop? use threads