mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-03 12:03:57 -06:00
PrinterOutputdevice is now also a QObject
CURA-1339
This commit is contained in:
parent
70eb042895
commit
e5adea4ab2
1 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
from UM.OutputDevice.OutputDevice import OutputDevice
|
from UM.OutputDevice.OutputDevice import OutputDevice
|
||||||
from PyQt5.QtCore import pyqtProperty, pyqtSignal, pyqtSlot
|
from PyQt5.QtCore import pyqtProperty, pyqtSignal, pyqtSlot, QObject
|
||||||
|
|
||||||
|
|
||||||
## Printer output device adds extra interface options on top of output device.
|
## Printer output device adds extra interface options on top of output device.
|
||||||
|
@ -11,9 +11,11 @@ from PyQt5.QtCore import pyqtProperty, pyqtSignal, pyqtSlot
|
||||||
# functions to actually have the implementation.
|
# functions to actually have the implementation.
|
||||||
#
|
#
|
||||||
# For all other uses it should be used in the same way as a "regular" OutputDevice.
|
# For all other uses it should be used in the same way as a "regular" OutputDevice.
|
||||||
class PrinterOutputDevice(OutputDevice):
|
class PrinterOutputDevice(OutputDevice, QObject):
|
||||||
def __init__(self, device_id):
|
def __init__(self, device_id, parent = None):
|
||||||
super().__init__(device_id)
|
QObject.__init__(self, parent)
|
||||||
|
OutputDevice.__init__(self, device_id)
|
||||||
|
|
||||||
self._target_bed_temperature = 0
|
self._target_bed_temperature = 0
|
||||||
self._target_hotend_temperatures = {}
|
self._target_hotend_temperatures = {}
|
||||||
self._head_x = 0
|
self._head_x = 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue