ironflow.gui.workflows.canvas_widgets.base module
Shared code among various canvas widgets.
- class ironflow.gui.workflows.canvas_widgets.base.CanvasWidget(x: Number, y: Number, parent: FlowCanvas | CanvasWidget, layout: Layout, selected: bool = False, title: str | None = None)[source]
Bases:
ABCParent class for all “widgets” that exist inside the scope of the flow canvas.
- add_widget(widget: CanvasWidget) None[source]
- property canvas: Canvas
- property color: str
- property flow_canvas: FlowCanvas
- get_element_at_xy(x_in: int | float, y_in: int | float) CanvasWidget | None[source]
- property gui: HasSession
- property height: int
- abstract on_click(last_selected_object: CanvasWidget | None) CanvasWidget | None[source]
- on_double_click() CanvasWidget | None[source]
- property screen: WorkflowsGUI
- property selected
- property width: int
- property x: int | float
- property y: int | float
- class ironflow.gui.workflows.canvas_widgets.base.HideableWidget(x: Number, y: Number, parent: FlowCanvas | CanvasWidget, layout: Layout, selected: bool = False, title: str | None = None, visible: bool = True, hidden_x: Number | None = None, hidden_y: Number | None = None)[source]
Bases:
CanvasWidget,ABC- property x: int | float
- property y: int | float