mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 06:23:59 -06:00
Make sidebar view working for active stage
This commit is contained in:
parent
0e1c9146cf
commit
a57a5aab6b
14 changed files with 605 additions and 812 deletions
|
@ -1,5 +1,6 @@
|
|||
# Copyright (c) 2017 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
from PyQt5.QtCore import pyqtProperty, QObject
|
||||
|
||||
from UM.Stage import Stage
|
||||
|
||||
|
@ -8,8 +9,10 @@ class CuraStage(Stage):
|
|||
def __init__(self):
|
||||
super().__init__()
|
||||
|
||||
def getMainView(self):
|
||||
return self.getView("main")
|
||||
@pyqtProperty(QObject, constant = True)
|
||||
def mainComponent(self):
|
||||
return self.getDisplayComponent("main")
|
||||
|
||||
def getSidebarView(self):
|
||||
return self.getView("sidebar")
|
||||
@pyqtProperty(QObject, constant = True)
|
||||
def sidebarComponent(self):
|
||||
return self.getDisplayComponent("sidebar")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue