mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
WIP: Refactor ProfileMenu.qml
This commit is contained in:
parent
8f8de0454f
commit
cd53ae0639
6 changed files with 83 additions and 55 deletions
|
@ -1,13 +1,18 @@
|
|||
from typing import Optional
|
||||
|
||||
from PyQt5.Qt import QObject
|
||||
from PyQt5.Qt import QObject, pyqtSlot
|
||||
|
||||
from cura.Machines.ContainerNode import ContainerNode
|
||||
|
||||
|
||||
class ContainerGroup(QObject):
|
||||
|
||||
def __init__(self, parent = None):
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue