From e5adea4ab2eb0c844d3df4c1eb409ff4b4c62580 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 13 Apr 2016 13:36:22 +0200 Subject: [PATCH] PrinterOutputdevice is now also a QObject CURA-1339 --- cura/PrinterOutputDevice.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cura/PrinterOutputDevice.py b/cura/PrinterOutputDevice.py index 4d8bcce680..ce236ed620 100644 --- a/cura/PrinterOutputDevice.py +++ b/cura/PrinterOutputDevice.py @@ -1,5 +1,5 @@ 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. @@ -11,9 +11,11 @@ from PyQt5.QtCore import pyqtProperty, pyqtSignal, pyqtSlot # functions to actually have the implementation. # # For all other uses it should be used in the same way as a "regular" OutputDevice. -class PrinterOutputDevice(OutputDevice): - def __init__(self, device_id): - super().__init__(device_id) +class PrinterOutputDevice(OutputDevice, QObject): + def __init__(self, device_id, parent = None): + QObject.__init__(self, parent) + OutputDevice.__init__(self, device_id) + self._target_bed_temperature = 0 self._target_hotend_temperatures = {} self._head_x = 0