From dafe0c8b0db4552760feb945fb258e05c2e46f56 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 25 Aug 2015 13:34:51 +0200 Subject: [PATCH] Added sliceInfo --- plugins/SliceInfoPlugin/SliceInfo.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 plugins/SliceInfoPlugin/SliceInfo.py diff --git a/plugins/SliceInfoPlugin/SliceInfo.py b/plugins/SliceInfoPlugin/SliceInfo.py new file mode 100644 index 0000000000..7abf9c4eaf --- /dev/null +++ b/plugins/SliceInfoPlugin/SliceInfo.py @@ -0,0 +1,14 @@ +# Copyright (c) 2015 Ultimaker B.V. +# Cura is released under the terms of the AGPLv3 or higher. + +from UM.Extension import Extension +from UM.Application import Application + +class SliceInfo(Extension): + def __init__(self): + super().__init__() + Application.getInstance().getOutputDeviceManager().writeStarted.connect(self._onWriteStarted) + + def _onWriteStarted(self, output_device): + print("Write started") + pass \ No newline at end of file