From 38a5cbecfceaf98f624fbd6cb052423cfb4886d1 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Thu, 24 Feb 2011 23:38:22 +0000 Subject: reposition labels on minus, divide, mod, greater than and less than blocks to make order of arguments less ambiguous --- (limited to 'TurtleArt/tablock.py') diff --git a/TurtleArt/tablock.py b/TurtleArt/tablock.py index 463784a..7ccfba3 100644 --- a/TurtleArt/tablock.py +++ b/TurtleArt/tablock.py @@ -385,7 +385,11 @@ class Block: self.tw.running_sugar) n = 0 for i in range(n): - if i == 1: # top + if self.name in COMPARE_PORCH_STYLE or \ + self.name in NUMBER_STYLE_PORCH: # special case + self.spr.set_label_attributes(int(self._font_size[0] + 0.5), + True, 'center', 'bottom', i) + elif i == 1: # top self.spr.set_label_attributes(int(self._font_size[1] + 0.5), True, 'right', 'top', i) elif i == 2: # bottom -- cgit v0.9.1