def kill_dragging(self): """ Remove all flags and temporary things related to dragging """ if ctrl.dragged_focus: ctrl.dragged_focus.finish_dragging() ctrl.dragged_text = None ctrl.press(None) ctrl.set_drag_hovering(None) ctrl.main.ui_manager.update_touch_areas() self.graph_view.toggle_suppress_drag(False)
def kill_dragging(self): """ Remove all flags and temporary things related to dragging """ if ctrl.dragged_focus: ctrl.dragged_focus.finish_dragging() ctrl.dragged_text = None ctrl.press(None) ctrl.set_drag_hovering(None) ctrl.ui.update_touch_areas() ctrl.graph_view.toggle_suppress_drag(False)
def mousePressEvent(self, event): ctrl.press(self) super().mousePressEvent(event)
def mousePressEvent(self, event): ctrl.press(self) Movable.mousePressEvent(self, event)