[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/01: grc: fix undefined color in headless
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/01: grc: fix undefined color in headless mode |
Date: |
Thu, 2 Apr 2015 19:15:48 +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 096f87eb2741c97fd3862e4cd50719e043b4cb6e
Author: Sebastian Koslowski <address@hidden>
Date: Tue Feb 24 10:02:42 2015 +0100
grc: fix undefined color in headless mode
---
grc/gui/Connection.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/grc/gui/Connection.py b/grc/gui/Connection.py
index f075a18..badf8e8 100644
--- a/grc/gui/Connection.py
+++ b/grc/gui/Connection.py
@@ -37,8 +37,8 @@ class Connection(Element):
def __init__(self):
Element.__init__(self)
- self._color = Colors.CONNECTION_ENABLED_COLOR
- self._bg_color = self._arrow_color = self._color
+ # can't use Colors.CONNECTION_ENABLED_COLOR here, might not be defined
(grcc)
+ self._bg_color = self._arrow_color = self._color = None
def get_coordinate(self):
"""
@@ -48,7 +48,7 @@ class Connection(Element):
Returns:
0, 0
"""
- return (0, 0)
+ return 0, 0
def get_rotation(self):
"""