mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
WIP: TO BE REMOVED: TestTools plugin
This commit is contained in:
parent
8ac9811b41
commit
0f045ce121
3 changed files with 47 additions and 0 deletions
27
plugins/TestTools/TestTool.py
Normal file
27
plugins/TestTools/TestTool.py
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Copyright (c) 2016 Ultimaker B.V.
|
||||
# Cura is released under the terms of the AGPLv3 or higher.
|
||||
from UM.Extension import Extension
|
||||
|
||||
from PyQt5.QtCore import QObject
|
||||
|
||||
|
||||
class TestTool(Extension, QObject):
|
||||
def __init__(self, parent = None):
|
||||
QObject.__init__(self, parent)
|
||||
Extension.__init__(self)
|
||||
|
||||
self.addMenuItem("Test material manager", self._testMaterialManager)
|
||||
self.addMenuItem("Test get quality", self._testGetQuality)
|
||||
|
||||
def _testMaterialManager(self):
|
||||
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
|
||||
from cura.CuraApplication import CuraApplication
|
||||
CuraApplication.getInstance()._material_manager._test_metadata()
|
||||
|
||||
def _testGetQuality(self):
|
||||
print("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
|
||||
from cura.CuraApplication import CuraApplication
|
||||
result_dict = {}
|
||||
global_stack = CuraApplication.getInstance().getMachineManager()._global_container_stack
|
||||
result = CuraApplication.getInstance()._quality_manager.getQualityGroups(global_stack)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue