From 1784e6b53e918627515c24717fbf54574e2207c5 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 04 Apr 2011 21:39:04 +0000 Subject: move the turtle into position to place the next block in the stack --- diff --git a/pysamples/load_block.py b/pysamples/load_block.py index b839757..12c7a71 100644 --- a/pysamples/load_block.py +++ b/pysamples/load_block.py @@ -88,8 +88,8 @@ def myblock(tw, blkname): return make_block(tw, name, x, y, defaults) return -1 - # Place the block at the active turtle (x, y) and - # push height to stack. + # Place the block at the active turtle (x, y) and move the turtle + # into position to place the next block in the stack. x, y = tw.active_turtle.get_xy() if type(blkname) == type([]): name = blkname[0] @@ -98,5 +98,5 @@ def myblock(tw, blkname): else: name = blkname dy = int(find_block(tw, name, x, y)) - if dy != -1: - tw.lc.heap.append(dy) + + tw.active_turtle.move((x, y - dy)) -- cgit v0.9.1