Node_node模块
包含用于表示Node 的NodeEditor 类的模块。
class nodeeditor.node_node.Node(scene: Scene, title: str = 'Undefined Node', inputs: list = [], outputs: list = [])
Bases: nodeeditor.node_serializable.Serializable
Class representing Node in the Scene.
Parameters(参数):
- scene (
Scene
) – Scene 类 - title (
str
) – Node 标题 - inputs – 将自动创建对应的Socket类型列表
- outputs – 将自动创建对应的Socket类型列表
Instance Attributes(属性):
- scene - Scene 类
- grNode - QDMGraphicsNode在QGraphicsScene. 在构造函数中自动创建
- content - QDMGraphicsContent是QWidget代表节点内所有内部小部件的容器的子代。在构造函数中自动创建
- inputs - 包含输入Socket实例的列表
- outputs - 包含输出Socket实例的列表
引用
GraphicsNode_class
nodeeditor.node_graphics_node.QDMGraphicsNode
NodeContent_class
nodeeditor.node