diff options
author | jblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5> | 2009-05-01 20:28:04 +0000 |
---|---|---|
committer | jblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5> | 2009-05-01 20:28:04 +0000 |
commit | a3ba8cf268816af51c4bb39ea7ecd7e85ea0807b (patch) | |
tree | 21dbd446e92672a56b323e005088d3c03edc238f /grc/src/platforms/gui/Connection.py | |
parent | 6ce881caaacdd60a8bea37584c7286e08bea97a7 (diff) |
Merged grc developer branch r10679:10938
Misc fixes and internal changes.
Added help menu for usage tips.
Added drag and drop for blocks.
Removed callback controls, adopted forms.
Any type can have enumerated options.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10941 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/src/platforms/gui/Connection.py')
-rw-r--r-- | grc/src/platforms/gui/Connection.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/grc/src/platforms/gui/Connection.py b/grc/src/platforms/gui/Connection.py index b130611fbf..9f243215e0 100644 --- a/grc/src/platforms/gui/Connection.py +++ b/grc/src/platforms/gui/Connection.py @@ -106,9 +106,10 @@ class Connection(Element): self.add_line((x1, y1), points[0]) self.add_line((x2, y2), points[0]) - def draw(self, window): + def draw(self, gc, window): """ Draw the connection. + @param gc the graphics context @param window the gtk window to draw on """ sink = self.get_sink() @@ -123,8 +124,7 @@ class Connection(Element): self._source_coor = source.get_coordinate() #draw fg_color = self.get_enabled() and Colors.FG_COLOR or Colors.DISABLED_FG_COLOR - Element.draw(self, window, FG_color=fg_color) - gc = self.get_gc() + Element.draw(self, gc, window, FG_color=fg_color) gc.foreground = self._foreground #draw arrow on sink port window.draw_polygon(gc, True, self._arrow) |