Example #1
0
 def cut_action_callback(self, *event):
     """Callback method for copy action"""
     if react_to_event(self.view, self.tree_view, event) and self.active_entry_widget is None:
         sm_selection, sm_selected_model_list = self.get_state_machine_selection()
         # only list specific elements are cut by widget
         if sm_selection is not None:
             sm_selection.set(sm_selected_model_list)
             global_clipboard.cut(sm_selection)
             return True
Example #2
0
 def on_cut_activate(self, widget, data=None):
     active_sm_m = self.state_machine_manager_model.get_selected_state_machine_model(
     )
     global_clipboard.cut(active_sm_m.selection)
Example #3
0
 def on_cut_activate(self, widget, data=None):
     # logger.info("trigger default cut")
     active_sm_m = self.state_machine_manager_model.get_selected_state_machine_model()
     global_clipboard.cut(active_sm_m.selection)