Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNino van Hooff <ninovanhooff@gmail.com>2020-05-08 18:37:49 +0300
committerNino van Hooff <ninovanhooff@gmail.com>2020-05-08 18:37:49 +0300
commita09cd0e63e6b5cffba068c9f704b01280b2313e7 (patch)
treeb594d320c6c25bea78519011be5e1b6e55d09df0 /plugins/PrepareStage
parenta4fe3d7685b677dd121262b2a1b137c33ba7ecd3 (diff)
Convert doxygen to rst for Prepare, Preview, RemovableOutputDevice
Diffstat (limited to 'plugins/PrepareStage')
-rw-r--r--plugins/PrepareStage/PrepareStage.py38
1 files changed, 20 insertions, 18 deletions
diff --git a/plugins/PrepareStage/PrepareStage.py b/plugins/PrepareStage/PrepareStage.py
index c2dee9693b..2d7ee9ee4f 100644
--- a/plugins/PrepareStage/PrepareStage.py
+++ b/plugins/PrepareStage/PrepareStage.py
@@ -1,19 +1,21 @@
-# Copyright (c) 2019 Ultimaker B.V.
-# Cura is released under the terms of the LGPLv3 or higher.
-
-import os.path
-from UM.Application import Application
-from UM.PluginRegistry import PluginRegistry
-from cura.Stages.CuraStage import CuraStage
-
-## Stage for preparing model (slicing).
-class PrepareStage(CuraStage):
- def __init__(self, parent = None):
- super().__init__(parent)
- Application.getInstance().engineCreatedSignal.connect(self._engineCreated)
-
- def _engineCreated(self):
- menu_component_path = os.path.join(PluginRegistry.getInstance().getPluginPath("PrepareStage"), "PrepareMenu.qml")
- main_component_path = os.path.join(PluginRegistry.getInstance().getPluginPath("PrepareStage"), "PrepareMain.qml")
- self.addDisplayComponent("menu", menu_component_path)
+# Copyright (c) 2019 Ultimaker B.V.
+# Cura is released under the terms of the LGPLv3 or higher.
+
+import os.path
+from UM.Application import Application
+from UM.PluginRegistry import PluginRegistry
+from cura.Stages.CuraStage import CuraStage
+
+
+class PrepareStage(CuraStage):
+ """Stage for preparing model (slicing)."""
+
+ def __init__(self, parent = None):
+ super().__init__(parent)
+ Application.getInstance().engineCreatedSignal.connect(self._engineCreated)
+
+ def _engineCreated(self):
+ menu_component_path = os.path.join(PluginRegistry.getInstance().getPluginPath("PrepareStage"), "PrepareMenu.qml")
+ main_component_path = os.path.join(PluginRegistry.getInstance().getPluginPath("PrepareStage"), "PrepareMain.qml")
+ self.addDisplayComponent("menu", menu_component_path)
self.addDisplayComponent("main", main_component_path) \ No newline at end of file