GCodeListDecorator.py 588 B

12345678910111213141516171819
  1. from UM.Scene.SceneNodeDecorator import SceneNodeDecorator
  2. from typing import List
  3. class GCodeListDecorator(SceneNodeDecorator):
  4. def __init__(self) -> None:
  5. super().__init__()
  6. self._gcode_list = [] # type: List[str]
  7. def getGCodeList(self) -> List[str]:
  8. return self._gcode_list
  9. def setGCodeList(self, list: List[str]):
  10. self._gcode_list = list
  11. def __deepcopy__(self, memo) -> "GCodeListDecorator":
  12. copied_decorator = GCodeListDecorator()
  13. copied_decorator.setGCodeList(self.getGCodeList())
  14. return copied_decorator