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/FlowGraph.py | |
parent | ab8ceb0c223c6521b112668df4580e93027e38e0 (diff) |
grc: refactor: handle flowgraph and connection super init same as in block
Diffstat (limited to 'grc/gui/FlowGraph.py')
-rw-r--r-- | grc/gui/FlowGraph.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/grc/gui/FlowGraph.py b/grc/gui/FlowGraph.py index d57323988f..5cd575dabe 100644 --- a/grc/gui/FlowGraph.py +++ b/grc/gui/FlowGraph.py @@ -34,24 +34,25 @@ from . import Actions, Colors, Utils, Bars, Dialogs from .Element import Element from .external_editor import ExternalEditor -from ..core.FlowGraph import FlowGraph as _Flowgraph +from ..core.FlowGraph import FlowGraph as CoreFlowgraph from ..core import Messages -class FlowGraph(Element, _Flowgraph): +class FlowGraph(CoreFlowgraph, Element): """ FlowGraph is the data structure to store graphical signal blocks, graphical inputs and outputs, and the connections between inputs and outputs. """ - def __init__(self, **kwargs): + def __init__(self, parent, **kwargs): """ FlowGraph constructor. Create a list for signal blocks and connections. Connect mouse handlers. """ + super(self.__class__, self).__init__(parent, **kwargs) Element.__init__(self) - _Flowgraph.__init__(self, **kwargs) + self.drawing_area = None # important vars dealing with mouse event tracking self.element_moved = False self.mouse_pressed = False |