From dc857861e87a224dacb3ff4f3712e2bd50b37395 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sun, 27 Feb 2011 18:34:42 +0000 Subject: clean up block names and alignments --- (limited to 'TurtleArt/tablock.py') diff --git a/TurtleArt/tablock.py b/TurtleArt/tablock.py index 7ccfba3..c52a096 100644 --- a/TurtleArt/tablock.py +++ b/TurtleArt/tablock.py @@ -385,10 +385,12 @@ class Block: self.tw.running_sugar) n = 0 for i in range(n): - if self.name in COMPARE_PORCH_STYLE or \ - self.name in NUMBER_STYLE_PORCH: # special case + if self.name in COMPARE_PORCH_STYLE: self.spr.set_label_attributes(int(self._font_size[0] + 0.5), True, 'center', 'bottom', i) + elif self.name in NUMBER_STYLE_PORCH: + self.spr.set_label_attributes(int(self._font_size[0] + 0.5), + True, 'right', 'bottom', i) elif i == 1: # top self.spr.set_label_attributes(int(self._font_size[1] + 0.5), True, 'right', 'top', i) -- cgit v0.9.1