class MyNodeData(nodeeditor.NodeData): data_type = nodeeditor.NodeDataType('MyNodeData', 'My Node Data')
class PortData(qtpynodeeditor.NodeData): data_type = qtpynodeeditor.NodeDataType(id='Port', name='Port') def __init__(self, port): self.port = port