Jul-26-2017, 04:20 PM
Well, if you're looking for improvements,
You call
from tkinter import *
probably should be something like import tkinter as tk
. import *
is not a good way to do things. Tutorials do it because it's easy, but it's also lazy and can lead to mistakes that are hard to trace down.You call
root.mainloop()
inside of an infinite loop. I'm pretty sure that's something that should only be called once. Since it consumes the main thread, I'm not sure that while True:
is needed at all.