Gmoccapy uses the python interface command channel to start the spindle:
Code:
if command == "stop":
# documentation of self.command.spindle()
# linuxcnc.spindle(direction, speed, spindle=0)
self.command.spindle(0)
self.widgets.lbl_spindle_act.set_label("S 0")
elif command == "forward":
self.command.spindle(1, rpm_out)
elif command == "reverse":
self.command.spindle(-1, rpm_out)
else:
LOG.debug("Something went wrong, we have an unknown spindle widget {0}".format(command))