mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -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
|
||||
@pyqtProperty(float, notify = bedTemperatureChanged)
|
||||
def bedTemperature(self):
|
||||
return self._getBedTemperature()
|
||||
|
||||
def _getBedTemperature(self):
|
||||
return None
|
||||
return self._bed_temperature
|
||||
|
||||
## Get the temperature of a hot end as defined by index.
|
||||
# /parameter index Index of the hotend to get a temperature from.
|
||||
|
@ -59,7 +56,7 @@ class PrinterOutputDevice(OutputDevice, QObject):
|
|||
|
||||
## Set the (target) bed temperature
|
||||
# This function is "final" (do not re-implement)
|
||||
# /sa _setBedTemperature
|
||||
# /sa _setTargetBedTemperature
|
||||
@pyqtSlot(int)
|
||||
def setTargetBedTemperature(self, temperature):
|
||||
self._setTargetBedTemperature(temperature)
|
||||
|
@ -71,6 +68,10 @@ class PrinterOutputDevice(OutputDevice, QObject):
|
|||
def _setTargetBedTemperature(self, temperature):
|
||||
pass
|
||||
|
||||
def _setBedTemperature(self, temperature):
|
||||
self._bed_temperature = temperature
|
||||
self.bedTemperatureChanged.emit()
|
||||
|
||||
## Get the bed temperature if connected printer (if any)
|
||||
@pyqtProperty(int, notify = bedTemperatureChanged)
|
||||
def bedTemperature(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue