CuraStage.py 632 B

1234567891011121314151617181920212223
  1. # Copyright (c) 2017 Ultimaker B.V.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. from PyQt5.QtCore import pyqtProperty, QUrl
  4. from UM.Stage import Stage
  5. class CuraStage(Stage):
  6. def __init__(self, parent = None):
  7. super().__init__(parent)
  8. @pyqtProperty(str, constant = True)
  9. def stageId(self):
  10. return self.getPluginId()
  11. @pyqtProperty(QUrl, constant = True)
  12. def mainComponent(self):
  13. return self.getDisplayComponent("main")
  14. @pyqtProperty(QUrl, constant = True)
  15. def sidebarComponent(self):
  16. return self.getDisplayComponent("sidebar")