pySimBlocks.gui.graphics.group_item¶
- class pySimBlocks.gui.graphics.group_item.GroupBoundaryPortItem(boundary: BoundaryPort, parent_group: GroupItem)[source]¶
Bases:
QGraphicsItemVisual port on a group rectangle border.
- R = 6¶
- L = 15¶
- H = 10¶
- MARGIN = 4¶
- property is_input: bool¶
- property is_on_left_side: bool¶
- class pySimBlocks.gui.graphics.group_item.GroupItem(group: VisualGroup, view: DiagramView)[source]¶
Bases:
QGraphicsRectItemRender a visual group container on the diagram.
- MIN_WIDTH = 80.0¶
- MIN_HEIGHT = 50.0¶
- GRID_DX = 5¶
- GRID_DY = 5¶
- SELECTION_HANDLE_SIZE = 8¶
- SELECTION_HANDLE_HIT_SIZE = 16¶
- boundary_port_items: dict[str, GroupBoundaryPortItem]¶
- boundary_anchor_for(boundary: BoundaryPort) QPointF[source]¶
Return the scene anchor for a boundary port on this group.
- refresh_boundary_port_labels() None[source]¶
Update external port labels after diagram connections change.
- paint(self, painter: PySide6.QtGui.QPainter, option: PySide6.QtWidgets.QStyleOptionGraphicsItem, /, widget: PySide6.QtWidgets.QWidget | None = None) None[source]¶
- itemChange(self, change: PySide6.QtWidgets.QGraphicsItem.GraphicsItemChange, value: Any, /) Any[source]¶