def rotate(self, command): if command == 'RotateRight': self.tdw.rotate(+2*math.pi/14) elif command == 'RotateLeft' : self.tdw.rotate(-2*math.pi/14)