commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/25: grc: show comments next to rotated b


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/25: grc: show comments next to rotated blocks (instead of underneath)
Date: Fri, 27 May 2016 19:14:57 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch master
in repository gnuradio.

commit 3d3c796b27a67ad33b46453a9618490d4c206e0e
Author: Glenn Richardson <address@hidden>
Date:   Wed May 18 15:03:30 2016 +0200

    grc: show comments next to rotated blocks (instead of underneath)
---
 grc/gui/Block.py | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/grc/gui/Block.py b/grc/gui/Block.py
index 815982c..a0a5f26 100644
--- a/grc/gui/Block.py
+++ b/grc/gui/Block.py
@@ -345,6 +345,10 @@ class Block(Element, _Block):
         if not self._comment_pixmap:
             return
         x, y = self.get_coordinate()
-        y += self.H if self.is_horizontal() else self.W
-        window.draw_drawable(gc, self._comment_pixmap, 0, 0, x,
-                             y + BLOCK_LABEL_PADDING, -1, -1)
+
+        if self.is_horizontal():
+            y += self.H + BLOCK_LABEL_PADDING
+        else:
+            x += self.H + BLOCK_LABEL_PADDING
+
+        window.draw_drawable(gc, self._comment_pixmap, 0, 0, x, y, -1, -1)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]