diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2009-10-05 17:39:37 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2009-10-05 17:39:37 (GMT) |
commit | b52a3f267462796d9097e0c879a8f5deaf5cb4a3 (patch) | |
tree | be6c43e65f96661cf993fd3ced5b17ba70586197 /talogo.py | |
parent | 3d6040c6eb04818ef02d50011f326dce49915694 (diff) |
cleaned up pre-0.86 toolbar support
Diffstat (limited to 'talogo.py')
-rw-r--r-- | talogo.py | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -167,10 +167,7 @@ def start_eval(lc, list): icall(lc, evline, list); yield True # turn off stop icon when execution is finished if hasattr(lc.tw,"activity"): - try: - lc.tw.activity.stop.set_icon("stopitoff") - except: - lc.tw.activity.projectToolbar.stop.set_icon("stopitoff") + lc.tw.activity.stop.set_icon("stopitoff") yield False def evline(lc, list): @@ -949,12 +946,7 @@ def hideblocks(lc): for i in lc.tw.selbuttons: hide(i) if hasattr(lc.tw,"activity"): - try: - # Use new toolbar design - lc.tw.activity.do_hide() - except: - # Use old toolbar design - lc.tw.activity.projectToolbar.do_hide() + lc.tw.activity.do_hide() def doevalstep(lc): starttime = millis() |