pySimBlocks.gui.graphics.group_proxy_item

class pySimBlocks.gui.graphics.group_proxy_item.GroupProxyPortItem(is_output: bool, parent_proxy: GroupProxyItem)[source]

Bases: QGraphicsItem

Single visible port on a GroupIn or GroupOut proxy block.

R = 6
L = 15
H = 10
property is_on_left_side: bool
connection_anchor() QPointF[source]
boundingRect(self, /) PySide6.QtCore.QRectF[source]
shape(self, /) PySide6.QtGui.QPainterPath[source]
mousePressEvent(self, event: PySide6.QtWidgets.QGraphicsSceneMouseEvent, /) None[source]
paint(self, painter: PySide6.QtGui.QPainter, option: PySide6.QtWidgets.QStyleOptionGraphicsItem, /, widget: PySide6.QtWidgets.QWidget | None = None) None[source]
class pySimBlocks.gui.graphics.group_proxy_item.GroupProxyItem(boundary: BoundaryPort, view: DiagramView)[source]

Bases: QGraphicsRectItem

Render a GroupIn or GroupOut proxy inside a visual group.

GroupIn exposes only an output toward group members; its external input lives on the parent GroupItem border. GroupOut exposes only an input from members; its external output lives on the parent GroupItem border.

WIDTH = 56.0
HEIGHT = 45.0
TYPE_LABEL_MIN_HEIGHT = 40.0
GRID_DX = 5
GRID_DY = 5
property is_group_in: bool
property is_group_out: bool
property kind_label: str
center_label() str[source]

Return proxy label from member port or manual override.

member_anchor() QPointF[source]

Anchor used for wires between the proxy and group members.

set_orientation(orientation: str) None[source]
paint(self, painter: PySide6.QtGui.QPainter, option: PySide6.QtWidgets.QStyleOptionGraphicsItem, /, widget: PySide6.QtWidgets.QWidget | None = None) None[source]
mousePressEvent(self, event: PySide6.QtWidgets.QGraphicsSceneMouseEvent, /) None[source]
mouseReleaseEvent(self, event: PySide6.QtWidgets.QGraphicsSceneMouseEvent, /) None[source]
contextMenuEvent(self, event: PySide6.QtWidgets.QGraphicsSceneContextMenuEvent, /) None[source]
itemChange(self, change: PySide6.QtWidgets.QGraphicsItem.GraphicsItemChange, value: Any, /) Any[source]