[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/02: grc: fix port placement for hidden p
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/02: grc: fix port placement for hidden ports |
Date: |
Wed, 28 Oct 2015 20:11:07 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 5eaa8bc4b3321014836cfc72a22181215cd9c7e6
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