def __init__(self, window, canvas, timestep=10): Thread.__init__(self) self.canvas = canvas self.daemon = True self.window = window self.core = Physics.PhysicsMotor() self.core.setTimestep(timestep) self.elements = dict() self.dispensers = list() self.running = False
def __init__(self): self.core = Physics.PhysicsMotor() self.core.setTimestep(10)