Translations:A2plus Workbench/145/en

def handleSliderValue(self): # set slider value as angle starWheel.Placement.Rotation.Angle = math.radians(self.slider.value) # output current angle self.CurrentAngle.setText(str(self.slider.value)) # solve the constraints a2p_solver.solveConstraints(document) # update the view after the solving ('Gui' stands for 'graphical user interface') FreeCADGui.updateGui # wait some time, important to give time to perform calculations time.sleep(timeout)