mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
25 lines
No EOL
602 B
Python
25 lines
No EOL
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") |