mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 17:57:55 -06:00
Move panels etc to a common "DefaultWindow" qml object so it can be shared
This commit is contained in:
parent
3b9bc5a3a8
commit
4f2fba04ea
2 changed files with 4 additions and 72 deletions
|
@ -1,6 +1,8 @@
|
|||
from Cura.Qt.QtApplication import QtApplication
|
||||
from Cura.Scene.SceneObject import SceneObject
|
||||
|
||||
import os.path
|
||||
|
||||
class PrinterApplication(QtApplication):
|
||||
def __init__(self):
|
||||
super(PrinterApplication, self).__init__()
|
||||
|
@ -17,7 +19,7 @@ class PrinterApplication(QtApplication):
|
|||
mesh.setMeshData(self.getMeshFileHandler().read("plugins/STLReader/simpleTestCube.stl",self.getStorageDevice('local')))
|
||||
root.addChild(mesh)
|
||||
|
||||
self.setMainQml("printer/Printer.qml")
|
||||
self.setMainQml(os.path.dirname(__file__) + "/Printer.qml")
|
||||
self.initializeEngine()
|
||||
|
||||
if self._engine.rootObjects:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue