node_graphics_socket Module¶
A module containing Graphics representation of a Socket
-
class
nodeeditor.node_graphics_socket.QDMGraphicsSocket(socket: Socket)¶ Bases:
PyQt5.QtWidgets.QGraphicsItemClass representing Graphic Socket in
QGraphicsScene-
property
socket_type¶
-
getSocketColor(key)¶ Returns the
QColorfor thiskey
-
changeSocketType()¶ Change the Socket Type
-
initAssets()¶ Initialize
QObjectslikeQColor,QPenandQBrush
-
paint(painter, QStyleOptionGraphicsItem, widget=None)¶ Painting a circle
-
boundingRect() → PyQt5.QtCore.QRectF¶ Defining Qt’ bounding rectangle
-
property