nodedge.blocks.graphics_input_block_content

Graphics input block content module containing GraphicsInputBlockContent class.

class nodedge.blocks.graphics_input_block_content.GraphicsInputBlockContent(node: Node, parent: Optional[PySide2.QtWidgets.QWidget] = None)

Bases: nodedge.graphics_node_content.GraphicsNodeContent

GraphicsInputBlockContent class

Parameters
  • node (Node) – reference to the Node

  • parent (QWidget) – parent widget

Instance Attributes
  • node - reference to the Node

  • layout - QLayout container

initUI()

Sets up layouts and widgets to be rendered in QDMGraphicsNode class.

updateIO()
serialize()

Default serialization method.

It needs to be overridden for each node implementation.

Return OrderedDict

Serialized data as ordered dictionary

deserialize(data: dict, hashmap: Optional[dict] = None, restoreId: bool = False, *args, **kwargs)

Default deserialize method.

It needs to be overridden for each node implementation.

Parameters
  • data (dict) – serialized data dictionary

  • hashmap (dict) –

  • restoreId (bool) – whether or not the id of the objects are restored

Return bool

success status

onEditingFinished()
staticMetaObject = <PySide2.QtCore.QMetaObject object>