From f90774178e691a92f9e539b87bb4ec066828ba7e Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sun, 18 Jan 2009 02:47:04 +0000 Subject: added delay on run button off --- 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): -- cgit v0.9.1