mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Added _setBedTemperature
CURA-1339
This commit is contained in:
parent
0cd1031ec7
commit
5ff5a957ae
1 changed files with 6 additions and 5 deletions
|
@ -47,10 +47,7 @@ class PrinterOutputDevice(OutputDevice, QObject):
|
||||||
# /sa _getBedTemperature
|
# /sa _getBedTemperature
|
||||||
@pyqtProperty(float, notify = bedTemperatureChanged)
|
@pyqtProperty(float, notify = bedTemperatureChanged)
|
||||||
def bedTemperature(self):
|
def bedTemperature(self):
|
||||||
return self._getBedTemperature()
|
return self._bed_temperature
|
||||||
|
|
||||||
def _getBedTemperature(self):
|
|
||||||
return None
|
|
||||||
|
|
||||||
## Get the temperature of a hot end as defined by index.
|
## Get the temperature of a hot end as defined by index.
|
||||||
# /parameter index Index of the hotend to get a temperature from.
|
# /parameter index Index of the hotend to get a temperature from.
|
||||||
|
@ -59,7 +56,7 @@ class PrinterOutputDevice(OutputDevice, QObject):
|
||||||
|
|
||||||
## Set the (target) bed temperature
|
## Set the (target) bed temperature
|
||||||
# This function is "final" (do not re-implement)
|
# This function is "final" (do not re-implement)
|
||||||
# /sa _setBedTemperature
|
# /sa _setTargetBedTemperature
|
||||||
@pyqtSlot(int)
|
@pyqtSlot(int)
|
||||||
def setTargetBedTemperature(self, temperature):
|
def setTargetBedTemperature(self, temperature):
|
||||||
self._setTargetBedTemperature(temperature)
|
self._setTargetBedTemperature(temperature)
|
||||||
|
@ -71,6 +68,10 @@ class PrinterOutputDevice(OutputDevice, QObject):
|
||||||
def _setTargetBedTemperature(self, temperature):
|
def _setTargetBedTemperature(self, temperature):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def _setBedTemperature(self, temperature):
|
||||||
|
self._bed_temperature = temperature
|
||||||
|
self.bedTemperatureChanged.emit()
|
||||||
|
|
||||||
## Get the bed temperature if connected printer (if any)
|
## Get the bed temperature if connected printer (if any)
|
||||||
@pyqtProperty(int, notify = bedTemperatureChanged)
|
@pyqtProperty(int, notify = bedTemperatureChanged)
|
||||||
def bedTemperature(self):
|
def bedTemperature(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue