Answer the question
In order to leave comments, you need to log in
How to speed up a table in python TkInter?
The situation is this:
I draw a table in tkinter, while it is updated in real time (many times per second).
To do this, I use objects of the Label class , from which I make a table, placing elements through grid() I attach a textvariable of the StringVar
type to each field , then I change these textvariables through the set() method . All textvariables are stored in a separate dictionary. Labels themselves do not touch.
As a result, a small 6x6 tablet works fine, but a larger one, somewhere around 30x30, starts to slow down wildly and hangs up the program.
How can I speed up the change of data in the table? Perhaps there are better solutions for TkInter than what I did?
python 2.7, tkinter 8
Answer the question
In order to leave comments, you need to log in
No way.
I once did minesweeper on TkInter - the same garbage. It is not designed for large arrays of elements: its niche is the interface to small utilities.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question