# -*- coding: utf-8 -*- """ This module contains a class which inherits from QtWidgets.QGraphicsScene to add custom functionality like drawing a grid. """ import graphics_node class AbstractNode(object): # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # def __init__(self, scene, title="Undefined Node"): self.scene = scene self.title = title self.graphics_node = graphics_node.ARTv2GraphicNode(self) self.scene.add_node(self) self.scene.graphics_scene.addItem(self.graphics_node) self.inputs = [] self.output = []