mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-11 16:57:51 -06:00
18 lines
460 B
Python
18 lines
460 B
Python
from typing import Optional
|
|
|
|
from PyQt5.Qt import QObject, pyqtSlot
|
|
|
|
from cura.Machines.ContainerNode import ContainerNode
|
|
|
|
|
|
class ContainerGroup(QObject):
|
|
|
|
def __init__(self, name: str, parent = None):
|
|
super().__init__(parent)
|
|
self.name = name
|
|
self.node_for_global = None # type: Optional[ContainerNode]
|
|
self.nodes_for_extruders = dict()
|
|
|
|
@pyqtSlot(result = str)
|
|
def getName(self) -> str:
|
|
return self.name
|