Python Forum
ZeroDivisionError: float division by zero
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ZeroDivisionError: float division by zero
#6
Calling mylistbox.get(ACTIVE) seems to return always the last object you added. In this case it was "Sport".
I think you have to refactor the code. It could be done with one class. There seems also to be an disambiguity between the first selection and the selection by mice.

Maybe I can look after work to investigate.
All objects like length, with, etc. should be live inside the class.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
RE: ZeroDivisionError: float division by zero - by DeaD_EyE - Feb-19-2020, 01:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] rez = (mass / h) | ZeroDivisionError Maryan 5 2,683 Oct-20-2020, 09:38 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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