Added home head & bed

CL-541
This commit is contained in:
Jaime van Kessel 2017-11-17 17:00:09 +01:00
parent f0a8db3d4e
commit 00a5127b19
2 changed files with 14 additions and 0 deletions

View file

@ -31,3 +31,9 @@ class PrinterOutputController:
def moveHead(self, printer: "PrinterOutputModel", x, y, z, speed): def moveHead(self, printer: "PrinterOutputModel", x, y, z, speed):
pass pass
def homeBed(self, printer):
pass
def homeHead(self, printer):
pass

View file

@ -40,6 +40,14 @@ class PrinterOutputModel(QObject):
self._can_pre_heat_bed = True self._can_pre_heat_bed = True
self._can_control_manually = True self._can_control_manually = True
@pyqtSlot()
def homeHead(self):
self._controller.homeHead(self)
@pyqtSlot()
def homeBed(self):
self._controller.homeBed(self)
@pyqtProperty("QVariantList", constant = True) @pyqtProperty("QVariantList", constant = True)
def extruders(self): def extruders(self):
return self._extruders return self._extruders