Python Forum
The graphic/simulator is not loading in OOP version
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The graphic/simulator is not loading in OOP version
#6
The main problem that I see is that you're filling the planets list with objects having a different type, namely the type Planet instead of whatever type was returned by the call to sphere() in the first version. You cannot send an unexpected type of objects in a system and think the system will work as usual. The disturbing fact here is that you don't have an error message, that is to say the system silently ignores your ill-typed instances. I think it is a design flaw in this app.

I think there is not much you can do until you understand what the system exactly expects to find in the planets list.
Reply


Messages In This Thread
RE: The graphic/simulator is not loading in OOP version - by Gribouillis - Sep-05-2018, 08:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Graphic line plot with matplotlib, text file in pytho khadija 2 1,425 Aug-15-2022, 12:00 PM
Last Post: khadija
  elevator simulator...whats the wrong at this code? tasos710 5 5,960 Jun-11-2019, 01:38 AM
Last Post: micseydel
  Embedding Python into a simulator siggi 0 2,210 Apr-24-2019, 07:42 PM
Last Post: siggi
  Can I upload a new version without previously deleting ancient version sylas 6 4,294 Nov-08-2017, 03:26 PM
Last Post: Larz60+
  Graphic of total different connection opened by one ip (per seconds) by time FoxModem56k 0 3,208 May-25-2017, 03:27 PM
Last Post: FoxModem56k

Forum Jump:

User Panel Messages

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