diff options
author | Walter Bender <walter@sugarlabs.org> | 2014-03-15 12:22:42 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2014-03-15 12:22:42 (GMT) |
commit | a760970a4e0f6689fcfb21f5848d1eeae7b528ab (patch) | |
tree | 3531d9f0c15943aa2af259aa10e1fe88d5567d41 | |
parent | 5d27c9df216e8f68988e66df62564e8c6e4b53c2 (diff) |
slightly less verbose font scaling patch
-rw-r--r-- | TurtleArt/tawindow.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py index 15eae4b..1d87c9b 100644 --- a/TurtleArt/tawindow.py +++ b/TurtleArt/tawindow.py @@ -2045,12 +2045,12 @@ class TurtleArtWindow(): if defaults is None: defaults = default_values[name] newblk = Block(self.block_list, self.sprite_list, name, x_pos, - y_pos, 'block', defaults, BLOCK_SCALE[3]) + y_pos, 'block', defaults) if self.block_scale != BLOCK_SCALE[3]: newblk.rescale(self.block_scale) else: newblk = Block(self.block_list, self.sprite_list, name, x_pos, - y_pos, 'block', [], BLOCK_SCALE[3]) + y_pos, 'block', []) if self.block_scale != BLOCK_SCALE[3]: newblk.rescale(self.block_scale) @@ -2098,14 +2098,12 @@ class TurtleArtWindow(): if argname is not None: if argname in content_blocks: argblk = Block(self.block_list, self.sprite_list, - argname, 0, 0, 'block', [argvalue], - BLOCK_SCALE[3]) + argname, 0, 0, 'block', [argvalue]) if self.block_scale != BLOCK_SCALE[3]: argblk.rescale(self.block_scale) else: argblk = Block(self.block_list, self.sprite_list, - argname, 0, 0, 'block', [], - BLOCK_SCALE[3]) + argname, 0, 0, 'block', []) if self.block_scale != BLOCK_SCALE[3]: argblk.rescale(self.block_scale) argdock = argblk.docks[0] @@ -2823,7 +2821,7 @@ class TurtleArtWindow(): argvalue = default_values[blk.name][ len(default_values[blk.name]) - 1] argblk = Block(self.block_list, self.sprite_list, argname, - 0, 0, 'block', [argvalue], BLOCK_SCALE[3]) + 0, 0, 'block', [argvalue]) if self.block_scale != BLOCK_SCALE[3]: argblk.rescale(self.block_scale) argdock = argblk.docks[0] @@ -3928,8 +3926,7 @@ class TurtleArtWindow(): btype = OLD_NAMES[btype] blk = Block(self.block_list, self.sprite_list, btype, - b[2] + offset, b[3] + offset, - 'block', values, BLOCK_SCALE[3]) + b[2] + offset, b[3] + offset, 'block', values) if self.block_scale != BLOCK_SCALE[3]: blk.rescale(self.block_scale) |