diff options
author | Ghostkeeper <rubend@tutanota.com> | 2017-02-09 12:31:35 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2017-02-09 12:31:35 +0300 |
commit | e37d8b949e5427d7564da6e3c1af4cc9cbf04bcc (patch) | |
tree | 67de5e07f00e2915c399f77e277b80285438340c /cura/PrinterOutputDevice.py | |
parent | c5655d4d8c1a3d1c02fd5092202803bae806fc91 (diff) |
Add fallback in PrinterOutputDevice for getting address
The fallback gives a warning that it's not implemented.
Contributes to issue CURA-3161.
Diffstat (limited to 'cura/PrinterOutputDevice.py')
-rw-r--r-- | cura/PrinterOutputDevice.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cura/PrinterOutputDevice.py b/cura/PrinterOutputDevice.py index c6bc3e8f3d..8f03bdff79 100644 --- a/cura/PrinterOutputDevice.py +++ b/cura/PrinterOutputDevice.py @@ -165,6 +165,11 @@ class PrinterOutputDevice(QObject, OutputDevice): self._job_name = name self.jobNameChanged.emit() + ## Gives a human-readable address where the device can be found. + @pyqtProperty(str, constant = True) + def address(self): + Logger.log("w", "address is not implemented by this output device.") + @pyqtProperty(str, notify = errorTextChanged) def errorText(self): return self._error_text |