mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-21 20:19:32 +08:00
Fixed caused by cleanup
This commit is contained in:
parent
13d2d7e42a
commit
25cfce2803
@ -39,6 +39,11 @@ class USBPrinterManager(QObject, SignalEmitter, Extension):
|
|||||||
## Add menu item to top menu of the application.
|
## Add menu item to top menu of the application.
|
||||||
self.addMenuItem(i18n_catalog.i18n("Update firmware"), self.updateAllFirmware)
|
self.addMenuItem(i18n_catalog.i18n("Update firmware"), self.updateAllFirmware)
|
||||||
|
|
||||||
|
pyqtError = pyqtSignal(str, arguments = ['amount'])
|
||||||
|
processingProgress = pyqtSignal(float, arguments = ['amount'])
|
||||||
|
pyqtExtruderTemperature = pyqtSignal(float, arguments = ['amount'])
|
||||||
|
pyqtBedTemperature = pyqtSignal(float, arguments = ['amount'])
|
||||||
|
|
||||||
## Show firmware interface.
|
## Show firmware interface.
|
||||||
# This will create the view if its not already created.
|
# This will create the view if its not already created.
|
||||||
def spawnFirmwareInterface(self, serial_port):
|
def spawnFirmwareInterface(self, serial_port):
|
||||||
@ -61,26 +66,18 @@ class USBPrinterManager(QObject, SignalEmitter, Extension):
|
|||||||
def progress(self):
|
def progress(self):
|
||||||
return self._progress
|
return self._progress
|
||||||
|
|
||||||
processingProgress = pyqtSignal(float, arguments = ['amount'])
|
|
||||||
|
|
||||||
@pyqtProperty(float,notify = pyqtExtruderTemperature)
|
@pyqtProperty(float,notify = pyqtExtruderTemperature)
|
||||||
def extruderTemperature(self):
|
def extruderTemperature(self):
|
||||||
return self._extruder_temp
|
return self._extruder_temp
|
||||||
|
|
||||||
pyqtExtruderTemperature = pyqtSignal(float, arguments = ['amount'])
|
|
||||||
|
|
||||||
@pyqtProperty(float,notify = pyqtBedTemperature)
|
@pyqtProperty(float,notify = pyqtBedTemperature)
|
||||||
def bedTemperature(self):
|
def bedTemperature(self):
|
||||||
return self._bed_temp
|
return self._bed_temp
|
||||||
|
|
||||||
pyqtBedTemperature = pyqtSignal(float, arguments = ['amount'])
|
|
||||||
|
|
||||||
@pyqtProperty(str,notify = pyqtError)
|
@pyqtProperty(str,notify = pyqtError)
|
||||||
def error(self):
|
def error(self):
|
||||||
return self._error_message
|
return self._error_message
|
||||||
|
|
||||||
pyqtError = pyqtSignal(str, arguments = ['amount'])
|
|
||||||
|
|
||||||
## Check all serial ports and create a PrinterConnection object for them.
|
## Check all serial ports and create a PrinterConnection object for them.
|
||||||
# Note that this does not validate if the serial ports are actually usable!
|
# Note that this does not validate if the serial ports are actually usable!
|
||||||
# This (the validation) is only done when the connect function is called.
|
# This (the validation) is only done when the connect function is called.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user