summaryrefslogtreecommitdiff
path: root/grc/gui/Block.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2014-12-02 22:48:56 +0100
committerSebastian Koslowski <koslowski@kit.edu>2014-12-02 22:48:56 +0100
commitc4a7d780fc50a1556e2aaf02ec92ef91afbd3242 (patch)
treebe0a7b66c7f43842295d19d1a92a01e661af986b /grc/gui/Block.py
parent30ff5da2bf36ebb98852f6be9c098447022818cd (diff)
grc: draw ports with custom domain differently
Diffstat (limited to 'grc/gui/Block.py')
-rw-r--r--grc/gui/Block.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/grc/gui/Block.py b/grc/gui/Block.py
index 9b8d3b1b56..11c1cafc97 100644
--- a/grc/gui/Block.py
+++ b/grc/gui/Block.py
@@ -212,8 +212,11 @@ class Block(Element):
gc: the graphics context
window: the gtk window to draw on
"""
+ # draw ports
+ for port in self.get_ports_gui():
+ port.draw(gc, window)
+ # draw main block
x, y = self.get_coordinate()
- #draw main block
Element.draw(
self, gc, window, bg_color=self._bg_color,
border_color=self.is_highlighted() and Colors.HIGHLIGHT_COLOR or
@@ -224,9 +227,6 @@ class Block(Element):
window.draw_drawable(gc, self.horizontal_label, 0, 0, x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)
elif self.is_vertical():
window.draw_drawable(gc, self.vertical_label, 0, 0, x+(self.H-self.label_height)/2, y+BLOCK_LABEL_PADDING, -1, -1)
- #draw ports
- for port in self.get_ports_gui():
- port.draw(gc, window)
def what_is_selected(self, coor, coor_m=None):
"""