diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2009-09-06 03:29:44 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2009-09-06 03:29:44 (GMT) |
commit | 5cb9dd7353a051acb4aed997b8f7d78610668483 (patch) | |
tree | 265c3328f3319ebf231015ba1a5bc0235db6517c /talogo.py | |
parent | f4f57edd0a7b6301d9d927fd634857f59dee4701 (diff) |
turn off stop icon when execution is complete
Diffstat (limited to 'talogo.py')
-rw-r--r-- | talogo.py | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -163,6 +163,8 @@ def setup_cmd(lc, str): def start_eval(lc, list): icall(lc, evline, list); yield True + # turn off stop icon when execution is finished + lc.tw.activity.stop.set_icon("stopitoff") yield False def evline(lc, list): @@ -183,7 +185,8 @@ def evline(lc, list): if lc.iresult==None: continue raise logoerror(str(lc.iresult)) lc.iline = oldiline - ireturn(lc); yield True + ireturn(lc) + yield True def eval(lc, infixarg=False): token = lc.iline.pop(0) @@ -195,7 +198,8 @@ def eval(lc, infixarg=False): while infixnext(lc): icall(lc, evalinfix, res); yield True res = lc.iresult - ireturn(lc, res); yield True + ireturn(lc, res) + yield True def evalsym(lc, token): debug_trace(lc, token) @@ -219,7 +223,8 @@ def evalsym(lc, token): if lc.arglist!=None and result==None: raise logoerror("%s didn't output to %s" % \ (oldcfun.name, lc.cfun.name)) - ireturn(lc, result); yield True + ireturn(lc, result) + yield True def evalinfix(lc, firstarg): token = lc.iline.pop(0) |