I am writing a GUI using tkinter that has a graph inside the main and only window. I have to update the value of the graph every 2 seconds. I have been able to do this by using tkinter canvas.draw(). My problem is that every time the canvas is drawn (these 2 seconds), the GUI freezes for some time, and if for example I am writing a value in an entry or selecting a value of a list in the GUI, the GUI stops working and I have to click again with the mouse in the entry, so it is not convenient. I guess that the GUI is redrawing completely all the window. However I only want to redraw the graph. By the way, I am using matplolib for the graph.
So my questions are:
* Is it possible to avoid this problem?
* If it is not possible, what are the alternatives? maybe creating another tkinter window only for the graph?.
0 comments:
Post a Comment
Thanks