Python Forum
Python 100 line Challenge
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python 100 line Challenge
#7
(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.
Reply


Messages In This Thread
Python 100 line Challenge - by codingCat - May-27-2022, 02:14 PM
RE: Python 100 line Challenge - by codingCat - May-27-2022, 02:19 PM
RE: Python 100 line Challenge - by Coricoco_fr - May-29-2022, 06:06 PM
RE: Python 100 line Challenge - by codingCat - Jun-01-2022, 02:04 PM
RE: Python 100 line Challenge - by codingCat - May-28-2022, 07:09 PM
RE: Python 100 line Challenge - by Larz60+ - May-28-2022, 09:56 PM
RE: Python 100 line Challenge - by codingCat - May-29-2022, 12:02 AM
RE: Python 100 line Challenge - by menator01 - Jun-04-2022, 10:25 AM
RE: Python 100 line Challenge - by menator01 - Jun-08-2022, 09:52 AM
RE: Python 100 line Challenge - by Coricoco_fr - Jun-20-2022, 07:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python 25 Line Challenge codingCat 34 8,403 May-18-2022, 07:17 PM
Last Post: codingCat
  Zen Python Challenge ichabod801 3 4,167 Aug-13-2018, 12:02 AM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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