Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tasetup.py2
-rw-r--r--tawindow.py5
2 files changed, 4 insertions, 3 deletions
diff --git a/tasetup.py b/tasetup.py
index 649edeb..e101abc 100644
--- a/tasetup.py
+++ b/tasetup.py
@@ -114,7 +114,7 @@ selectors = (
toolbaritems = (
('stopit',75),
('eraser',75),
- ('hideshow',75)
+ ('hideshow',75),
('run',75))
dockdetails = {
diff --git a/tawindow.py b/tawindow.py
index d0765b4..5de4183 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -402,12 +402,13 @@ def hideshow_blocks(tw,spr):
def run(tw, spr):
print "you better run, turtle, run!!"
+ setshape(spr,spr.onshape)
for b in blocks(tw):
if find_block_to_run(tw, b):
- setshape(spr,spr.onshape)
run_stack(tw, b)
- setshape(spr,spr.offshape)
+ gobject.timeout_add(250,setshape,spr,spr.offshape)
return
+ setshape(spr,spr.offshape)
# find a stack to run (a stack without a hat)
def find_block_to_run(tw, spr):