Jun-01-2022, 02:04 PM
(May-29-2022, 06:06 PM)Coricoco_fr Wrote: Hello,
This is not well written tkinter code. With tkinter you use a callback (use after()) to loop...
I see other clumsinesses...
I actually developed this code to specifically avoid using after. When teaching coding to new students, something like an event call back can be completely incomprehensible. By using a while loop and leaning into update() and sleep() it is much easier to see the flow of the code.
Would you be interested in restructuring and reposting the code to use after() rather than the while loop? I would love to see your take on the event driven design, as well as seeing the fixes to the other perceived clumsiness's.