コード例 #1
0
 def __init__(self, name, value, description, world):
     _VisualEditorBase.__init__(self, name, value, description, world)
     world.robot(0).setConfig(value)
     self.clicked = None
     self.hovered = None
     self.robotposer = RobotPoser(world.robot(0))
     self.addWidget(self.robotposer)
コード例 #2
0
 def __init__(self, name, value, description, world, robot=None):
     _VisualEditorBase.__init__(self, name, value, description, world)
     if robot is None:
         robot = world.robot(0)
     robot.setConfig(value)
     self.robot = robot
     self.clicked = None
     self.hovered = None
     self.robotposer = RobotPoser(robot)
     self.addWidget(self.robotposer)