def __cut_action__triggered(self, checked):
        """
        Defines the slot triggered by **'Actions|Umbra|Components|factory.script_editor|&Edit|Cu&t'** action.

        :param checked: Checked state.
        :type checked: bool
        :return: Method success.
        :rtype: bool
        """

        current_widget = self.get_focus_widget()
        if not current_widget:
            return False

        if current_widget.objectName() == "Script_Editor_Output_plainTextEdit":
            current_widget.copy()
        else:
            current_widget.cut()
        return True
def __cut_action__triggered ( self , checked ) : current_widget = self . get_focus_widget ( ) if not current_widget : return False if current_widget . objectName ( ) == "Script_Editor_Output_plainTextEdit" : current_widget . copy ( ) else : current_widget . cut ( ) return True
Defines the slot triggered by **'Actions|Umbra|Components|factory.script_editor|&Edit|Cu&t'** action.

        :param checked: Checked state.
        :type checked: bool
        :return: Method success.
        :rtype: bool