mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-01 16:24:41 +08:00
14 lines
510 B
Python
14 lines
510 B
Python
# Copyright (c) 2017 Ultimaker B.V.
|
|
# Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
from cura.PrinterOutput.PrinterOutputController import PrinterOutputController
|
|
|
|
|
|
class LegacyUM3PrinterOutputController(PrinterOutputController):
|
|
def __init__(self, output_device):
|
|
super().__init__(output_device)
|
|
|
|
def setJobState(self, job: "PrintJobOutputModel", state: str):
|
|
data = "{\"target\": \"%s\"}" % state
|
|
self._output_device.put("print_job/state", data, onFinished=None)
|