mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
F5 reloads gcode file
CURA-6643
This commit is contained in:
parent
867a881de9
commit
946b2b943e
5 changed files with 33 additions and 7 deletions
|
@ -1,11 +1,18 @@
|
|||
from UM.Scene.SceneNodeDecorator import SceneNodeDecorator
|
||||
from typing import List
|
||||
from typing import List, Optional
|
||||
|
||||
|
||||
class GCodeListDecorator(SceneNodeDecorator):
|
||||
def __init__(self) -> None:
|
||||
super().__init__()
|
||||
self._gcode_list = [] # type: List[str]
|
||||
self._filename = None # type: Optional[str]
|
||||
|
||||
def getGcodeFileName(self) -> Optional[str]:
|
||||
return self._filename
|
||||
|
||||
def setGcodeFileName(self, filename: str) -> None:
|
||||
self._filename = filename
|
||||
|
||||
def getGCodeList(self) -> List[str]:
|
||||
return self._gcode_list
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue