blob: fcb4eefb1034997b18ab88246c03738f70485cf5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# -*- 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 = []
|