mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-23 04:59:26 +08:00
23 lines
639 B
Python
23 lines
639 B
Python
# Copyright (c) 2017 Ultimaker B.V.
|
|
# Cura is released under the terms of the LGPLv3 or higher.
|
|
from PyQt5.QtCore import pyqtProperty, QUrl, QObject
|
|
|
|
from UM.Stage import Stage
|
|
|
|
class CuraStage(Stage):
|
|
|
|
def __init__(self, parent = None):
|
|
super().__init__(parent)
|
|
|
|
@pyqtProperty(str, constant = True)
|
|
def stageId(self):
|
|
return self.getPluginId()
|
|
|
|
@pyqtProperty(QUrl, constant = True)
|
|
def mainComponent(self):
|
|
return self.getDisplayComponent("main")
|
|
|
|
@pyqtProperty(QUrl, constant = True)
|
|
def sidebarComponent(self):
|
|
return self.getDisplayComponent("sidebar")
|