aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/graphicsview/elasticnodes/elasticnodes.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/graphicsview/elasticnodes/elasticnodes.py')
-rw-r--r--examples/widgets/graphicsview/elasticnodes/elasticnodes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/widgets/graphicsview/elasticnodes/elasticnodes.py b/examples/widgets/graphicsview/elasticnodes/elasticnodes.py
index f374f0180..549a27259 100644
--- a/examples/widgets/graphicsview/elasticnodes/elasticnodes.py
+++ b/examples/widgets/graphicsview/elasticnodes/elasticnodes.py
@@ -61,7 +61,7 @@ class Edge(QGraphicsItem):
type = QGraphicsItem.UserType + 2
def __init__(self, sourceNode, destNode):
- QGraphicsItem.__init__(self)
+ super().__init__()
self._arrow_size = 10.0
self._source_point = QPointF()
@@ -160,7 +160,7 @@ class Node(QGraphicsItem):
type = QGraphicsItem.UserType + 1
def __init__(self, graphWidget):
- QGraphicsItem.__init__(self)
+ super().__init__()
self.graph = weakref.ref(graphWidget)
self._edge_list = []
@@ -275,7 +275,7 @@ class Node(QGraphicsItem):
class GraphWidget(QGraphicsView):
def __init__(self):
- QGraphicsView.__init__(self)
+ super().__init__()
self._timer_id = 0