Пример #1
0
 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
Пример #2
0
 def __init__(self):
     self.core = Physics.PhysicsMotor()
     self.core.setTimestep(10)