mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-21 05:09:37 +08:00
25 lines
602 B
Python
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") |