[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 02/21: grc: fix port placement for hidden p
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 02/21: grc: fix port placement for hidden ports |
Date: |
Fri, 30 Oct 2015 21:11:25 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit 417ebd7e8964328d06554dafbd8562e2e4c7e39c
Author: Sebastian Koslowski <address@hidden>
Date: Wed Oct 28 20:51:31 2015 +0100
grc: fix port placement for hidden ports
---
grc/gui/Port.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/grc/gui/Port.py b/grc/gui/Port.py
index 93372ea..4948c77 100644
--- a/grc/gui/Port.py
+++ b/grc/gui/Port.py
@@ -62,10 +62,9 @@ class Port(Element):
#get current rotation
rotation = self.get_rotation()
#get all sibling ports
- if self.is_source():
- ports = self.get_parent().get_sources_gui()
- elif self.is_sink():
- ports = self.get_parent().get_sinks_gui()
+ ports = self.get_parent().get_sources_gui() \
+ if self.is_source() else self.get_parent().get_sinks_gui()
+ ports = filter(lambda p: not p.get_hide(), ports)
#get the max width
self.W = max([port.W for port in ports] + [PORT_MIN_WIDTH])
W = self.W if not self._label_hidden() else PORT_LABEL_HIDDEN_WIDTH
- [Commit-gnuradio] [gnuradio] branch master updated (1aface8 -> f8a84eb), git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 03/21: grc: disconnect hidden blocks, git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 01/21: blocks: Add Complex to IChar block, git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 13/21: qtgui: time display: fixes a threading issue., git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 02/21: grc: fix port placement for hidden ports,
git <=
- [Commit-gnuradio] [gnuradio] 06/21: qtgui: whitespace and line formatting, git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 12/21: qtgui: histogram plotter supports PDU message plotting., git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 08/21: qtgui: Better support for waterfall PDU message port., git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 05/21: qtgui: added documentation describing pdus message input port., git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 04/21: qtgui: Throw an error if the PDU is not a multiple of the fft size., git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 17/21: Merge branch 'maint', git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 18/21: Merge remote-tracking branch 'miek/complex-to-ichar', git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 20/21: Merge branch 'maint', git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 11/21: qtgui: time raster plotters support PDU message plotting., git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 09/21: qtgui: constellation plotter supports PDU message plotting., git, 2015/10/30