Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tawindow.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2010-03-03 19:51:00 (GMT)
committer Walter Bender <walter@sugarlabs.org>2010-03-03 19:51:00 (GMT)
commit9f648c1340b8c1cc9b4f8e414427e2d08784cc57 (patch)
tree24b24e6a9ef2ab0a7e63a7cbdfd53e000dbc1aee /tawindow.py
parent94d2541eba3258ff1a65690a86dfbca85d0aeea8 (diff)
fixed collapsible block regression
Diffstat (limited to 'tawindow.py')
-rw-r--r--tawindow.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tawindow.py b/tawindow.py
index 9530692..aa40807 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -1663,14 +1663,18 @@ class TurtleArtWindow():
bot = self._find_sandwich_bottom(top)
if bot is None:
return
+ """
if top.ey > 0:
+ print "reseting arm"
top.reset_y()
- (tx, ty) = top.spr.get_xy()
- (tw, th) = top.spr.get_dimensions()
- (bx, by) = bot.spr.get_xy()
+ """
+ tx, ty = top.spr.get_xy()
+ tw, th = top.spr.get_dimensions()
+ bx, by = bot.spr.get_xy()
dy = by-(ty+th)
if dy > 0:
top.expand_in_y(dy/top.scale)
+ top.refresh()
"""
Check the state of collapsible blocks upon change in dock state.