diff options
author | Josh Morman <jmorman@perspectalabs.com> | 2019-06-07 15:41:26 -0400 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2019-07-15 21:48:10 +0200 |
commit | 64984004009d900944650be5dfb327150d27dc30 (patch) | |
tree | 0259e248267a769f502276e094171500bd399620 /grc/gui/canvas/flowgraph.py | |
parent | 7fcd64e0d2287b6dc4e408c2349d53d98c0a847e (diff) |
grc: add busports back into 3.8
Bus ports had not been added back in since the refactor of grc
Hopefully this fully enables busports though there are still some
issues with the gr-fec flowgraphs
Fixes #2277
Diffstat (limited to 'grc/gui/canvas/flowgraph.py')
-rw-r--r-- | grc/gui/canvas/flowgraph.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/grc/gui/canvas/flowgraph.py b/grc/gui/canvas/flowgraph.py index ca27406e0e..5bdda4745e 100644 --- a/grc/gui/canvas/flowgraph.py +++ b/grc/gui/canvas/flowgraph.py @@ -487,7 +487,13 @@ class FlowGraph(CoreFlowgraph, Drawable): element.create_labels(cr) def create_shapes(self): - for element in self._elements_to_draw: + #TODO - this is a workaround for bus ports not having a proper coordinate + # until the shape is drawn. The workaround is to draw blocks before connections + + for element in filter(lambda x: x.is_block, self._elements_to_draw) : + element.create_shapes() + + for element in filter(lambda x: not x.is_block, self._elements_to_draw): element.create_shapes() def _drawables(self): |