Here is a rough idea of what I want to do:
class PlayerModel(Timeline):
def __init__(self, name):
self.name = name
self.timeline_min = super(timeline_min) # I don't know the syntax for this
self.timeline_max = super(timeline_max) # I don't know the syntax for this
class Timeline:
def __init__(self):
self.timeline_min = 0
self.timeline_max = 120
def make_model(self, m_name):
return PlayerModel(m_name)
I want PlayerModel to have the same properties from Timeline which are:
self.timeline_min = 0
self.timeline_max = 120
in it's __init__, without having to pass them as parameters. Could I achieve this using super()? I could not find a way to do this with the parent's variables.