Tkinter GUI app runs slower as time goes on
问题 I am designing a GUI that shows the number of packets on a node at a given cycle. The program adds one to the counter every loop and updates the GUI with the new info, so that every ~0.1 seconds a different layout is drawn by the GUI. There are 7 different layouts, and when the program gets to layout 7 it goes back to 0, creating an infinite loop of the 7 layouts. This is intended. The problem is the program runs slower as time goes on, i.e. it takes about 0.101 seconds to increment from 0 to