Commit b6d222439a27c332b6e7c3bc3ce6b0d3ebef5852
1 parent
2ebed007
Exists in
master
and in
68 other branches
ENC: In order to work in MacOS while I don't compile Cairo
Showing
1 changed file
with
3 additions
and
4 deletions
Show diff stats
invesalius/gui/widgets/clut_raycasting.py
@@ -219,7 +219,6 @@ class CLUTRaycastingWidget(wx.Panel): | @@ -219,7 +219,6 @@ class CLUTRaycastingWidget(wx.Panel): | ||
219 | self.Render(dc) | 219 | self.Render(dc) |
220 | 220 | ||
221 | def OnSize(self, evt): | 221 | def OnSize(self, evt): |
222 | - print "Resizing" | ||
223 | self.CreatePixelArray() | 222 | self.CreatePixelArray() |
224 | self.Refresh() | 223 | self.Refresh() |
225 | 224 | ||
@@ -282,7 +281,6 @@ class CLUTRaycastingWidget(wx.Panel): | @@ -282,7 +281,6 @@ class CLUTRaycastingWidget(wx.Panel): | ||
282 | = ctx.text_extents("Value %6d" % value) | 281 | = ctx.text_extents("Value %6d" % value) |
283 | 282 | ||
284 | fheight = ctx.font_extents()[2] | 283 | fheight = ctx.font_extents()[2] |
285 | - print "font", x_bearing, y_bearing | ||
286 | 284 | ||
287 | ctx.set_source_rgba(*BACKGROUND_TEXT_COLOUR_RGBA) | 285 | ctx.set_source_rgba(*BACKGROUND_TEXT_COLOUR_RGBA) |
288 | ctx.rectangle(x + RADIUS + 1 + x_bearing, y - RADIUS * 2 - 2 + | 286 | ctx.rectangle(x + RADIUS + 1 + x_bearing, y - RADIUS * 2 - 2 + |
@@ -334,8 +332,9 @@ class CLUTRaycastingWidget(wx.Panel): | @@ -334,8 +332,9 @@ class CLUTRaycastingWidget(wx.Panel): | ||
334 | self._draw_curves(ctx) | 332 | self._draw_curves(ctx) |
335 | self._draw_points(ctx) | 333 | self._draw_points(ctx) |
336 | self._draw_selection_curve(ctx, width) | 334 | self._draw_selection_curve(ctx, width) |
337 | - if self.point_dragged: | ||
338 | - self._draw_selected_point_text(ctx) | 335 | + if sys.platform != "darwin": |
336 | + if self.point_dragged: | ||
337 | + self._draw_selected_point_text(ctx) | ||
339 | 338 | ||
340 | 339 | ||
341 | def _build_histogram(self): | 340 | def _build_histogram(self): |