Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/talogo.py
diff options
context:
space:
mode:
authorWalter 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)
commit5cb9dd7353a051acb4aed997b8f7d78610668483 (patch)
tree265c3328f3319ebf231015ba1a5bc0235db6517c /talogo.py
parentf4f57edd0a7b6301d9d927fd634857f59dee4701 (diff)
turn off stop icon when execution is complete
Diffstat (limited to 'talogo.py')
-rw-r--r--talogo.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/talogo.py b/talogo.py
index 5ae03d3..8a7bbed 100644
--- a/talogo.py
+++ b/talogo.py
@@ -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)