Cura/cura/MachineAction.py
2016-06-17 17:22:49 +02:00

25 lines
602 B
Python

# Copyright (c) 2016 Ultimaker B.V.
# Cura is released under the terms of the AGPLv3 or higher.
from PyQt5.QtCore import QObject, pyqtSlot
from UM.PluginObject import PluginObject
class MachineAction(QObject, PluginObject):
def __init__(self, key, label = ""):
super().__init__()
self._key = key
self._label = label
def getKey(self):
return self._key
def getLabel(self):
return self._label
@pyqtSlot()
def execute(self):
self._execute()
def _execute(self):
raise NotImplementedError("Execute() must be implemented")