node_graphics_socket Module

A module containing Graphics representation of a Socket

class nodeeditor.node_graphics_socket.QDMGraphicsSocket(socket: Socket)

Bases: PyQt5.QtWidgets.QGraphicsItem

Class representing Graphic Socket in QGraphicsScene

Parameters

socket (Socket) – reference to Socket

property socket_type
getSocketColor(key)

Returns the QColor for this key

changeSocketType()

Change the Socket Type

initAssets()

Initialize QObjects like QColor, QPen and QBrush

paint(painter, QStyleOptionGraphicsItem, widget=None)

Painting a circle

boundingRect()PyQt5.QtCore.QRectF

Defining Qt’ bounding rectangle