summaryrefslogtreecommitdiff
path: root/grc/gui/Port.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/gui/Port.py')
-rw-r--r--grc/gui/Port.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/grc/gui/Port.py b/grc/gui/Port.py
index 8945aa8c28..e0e585b482 100644
--- a/grc/gui/Port.py
+++ b/grc/gui/Port.py
@@ -161,8 +161,8 @@ class Port(_Port, Element):
the connector coordinate (x, y) tuple
"""
x, y = self._connector_coordinate
- X, Y = self.get_coordinate()
- return (x + X, y + Y)
+ x_pos, y_pos = self.get_coordinate()
+ return x + x_pos, y + y_pos
def get_connector_direction(self):
"""
@@ -173,8 +173,10 @@ class Port(_Port, Element):
Returns:
the direction in degrees
"""
- if self.is_source: return self.get_rotation()
- elif self.is_sink: return (self.get_rotation() + 180)%360
+ if self.is_source:
+ return self.get_rotation()
+ elif self.is_sink:
+ return (self.get_rotation() + 180) % 360
def get_rotation(self):
"""