ironflow.gui.canvas_widgets.nodes module
Canvas representations of the nodes.
- class ironflow.gui.canvas_widgets.nodes.ButtonNodeWidget(x: Number, y: Number, parent: FlowCanvas | CanvasWidget, layout: NodeLayout, node: Node, selected: bool = False, title: Optional[str] = None, port_radius: Number = 10)[source]
Bases:
NodeWidget
- class ironflow.gui.canvas_widgets.nodes.NodeWidget(x: Number, y: Number, parent: FlowCanvas | CanvasWidget, layout: NodeLayout, node: Node, selected: bool = False, title: Optional[str] = None, port_radius: Number = 10)[source]
Bases:
CanvasWidgetThe main ipycanvas representation of a node. Has graphical elements for IO ports. Collapsable to save space.
Also has a SHOW button that sends a representation over to the ironflow.GUI.node_presenter window. Presentation gets locked until the button is pressed again, the node is deleted, or another node gets presented. While presented, representation updates automatically on changes to input.
- property color: str
- on_click(last_selected_object: Optional[CanvasWidget]) ironflow.gui.canvas_widgets.nodes.NodeWidget | None[source]
- property port_widgets: list[ironflow.gui.canvas_widgets.ports.PortWidget]