nodedge.blocks.graphics_block

class nodedge.blocks.graphics_block.GraphicsBlock(node: Node, parent: Optional[PySide2.QtWidgets.QGraphicsItem] = None)

Bases: nodedge.graphics_node.GraphicsNode

Parameters
  • node (Node) – reference to Node

  • parent (Optional[QGraphicsItem]) – parent widget

initSizes()

Set up internal attributes like width, height, etc.

initStyle()

Initialize QObjects like QColor, QPen and QBrush.

paint(painter, QStyleOptionGraphicsItem, widget=None)

Paint the rounded rectangular Node.