From 9c8080555d39f5df77b208c4ba6f4e3e42059885 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Fri, 25 Nov 2011 21:48:02 +0000 Subject: move position of labels on if-then-else blocks; add some doc strings to block factories; move some constants to taconstant.py --- (limited to 'TurtleArt/tablock.py') diff --git a/TurtleArt/tablock.py b/TurtleArt/tablock.py index 03ddc05..35dd6d3 100644 --- a/TurtleArt/tablock.py +++ b/TurtleArt/tablock.py @@ -445,6 +445,15 @@ class Block: elif self.name in block_styles['number-style-porch']: self.spr.set_label_attributes(int(self._font_size[0] + 0.5), True, 'right', 'bottom', i) + + elif self.name in block_styles['flow-style-boolean'] or \ + self.name in block_styles['flow-style-else']: + self.spr.set_label_attributes(int(self._font_size[0] + 0.5), + True, 'left', 'middle', 0) + self.spr.set_label_attributes(int(self._font_size[1] + 0.5), + True, 'right', 'top', 1) + self.spr.set_label_attributes(int(self._font_size[1] + 0.5), + True, 'right', 'bottom', 2) elif i == 1: # top self.spr.set_label_attributes(int(self._font_size[1] + 0.5), True, 'right', 'top', i) -- cgit v0.9.1