node_edge_dragging Module¶
A module containing the Edge Dragging functionality
-
class
nodeeditor.node_edge_dragging.EdgeDragging(grView: QGraphicsView)¶ Bases:
object-
getEdgeClass()¶ Helper function to get the Edge class. Using what Scene class provides
-
updateDestination(x: float, y: float)¶ Update the end point of our dragging edge
- Parameters
x – new X scene position
y – new Y scene position
-
edgeDragStart(item: QGraphicsItem)¶ Code handling the start of a dragging an Edge operation
-
edgeDragEnd(item: QGraphicsItem)¶ Code handling the end of the dragging an Edge operation. If this code returns True then skip the rest of the mouse event processing. Can be called with
Noneto cancel the edge dragging mode- Parameters
item (
QGraphicsItem) – Item in the Graphics Scene where we ended dragging an Edge
-