diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2016-07-31 21:13:17 +0200 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2016-08-03 21:44:41 +0200 |
commit | 52dadbf46f16b682348a6969a782ff64a129d9f8 (patch) | |
tree | 63b52fdb5bb611b8f94dc6097458743c7c86f07c /grc/gui/Connection.py | |
parent | ab8ceb0c223c6521b112668df4580e93027e38e0 (diff) |
grc: refactor: handle flowgraph and connection super init same as in block
Diffstat (limited to 'grc/gui/Connection.py')
-rw-r--r-- | grc/gui/Connection.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/grc/gui/Connection.py b/grc/gui/Connection.py index b1ae32ddcc..949840401e 100644 --- a/grc/gui/Connection.py +++ b/grc/gui/Connection.py @@ -24,10 +24,10 @@ from .Constants import CONNECTOR_ARROW_BASE, CONNECTOR_ARROW_HEIGHT from .Element import Element from ..core.Element import nop_write -from ..core.Connection import Connection as _Connection +from ..core.Connection import Connection as CoreConnection -class Connection(Element, _Connection): +class Connection(CoreConnection, Element): """ A graphical connection for ports. The connection has 2 parts, the arrow and the wire. @@ -38,8 +38,8 @@ class Connection(Element, _Connection): """ def __init__(self, *args, **kwargs): + super(self.__class__, self).__init__(*args, **kwargs) Element.__init__(self) - _Connection.__init__(self, *args, **kwargs) self._color = self._color2 = self._arrow_color = None @@ -64,7 +64,7 @@ class Connection(Element, _Connection): return 0 def create_shapes(self): - """Precalculate relative coordinates.""" + """Pre-calculate relative coordinates.""" Element.create_shapes(self) self._sink_rot = None self._source_rot = None |