From 5cb9dd7353a051acb4aed997b8f7d78610668483 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sun, 06 Sep 2009 03:29:44 +0000 Subject: turn off stop icon when execution is complete --- (limited to 'talogo.py') 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) -- cgit v0.9.1