Python Forum
[Tkinter] GUI Speed
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] GUI Speed
#4
When I ran this code the canvas update takes 0.14 seconds. I shaved a whole 3% off by using Canvas.itemconfig to set the rectangle color instead of deleting all the rectangles and making a new grid. Tkinter is doggy doing normal things and this is not the kind of thing it is meant to do. Those rectangles are all objects, not just a drawing on the canvas. This is not much different than drawing a panel with 3600 buttons then delete. Repeat.

Have you thought about doing whatever it is you are trying to do using PyGame? PyGame should be faster at drawing.
Reply


Messages In This Thread
GUI Speed - by DPaul - Jul-20-2020, 07:49 AM
RE: GUI Speed - by deanhystad - Jul-20-2020, 01:59 PM
RE: GUI Speed - by DPaul - Jul-20-2020, 02:50 PM
RE: GUI Speed - by deanhystad - Jul-20-2020, 06:25 PM
RE: GUI Speed - by DPaul - Jul-21-2020, 06:38 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020