From b52a3f267462796d9097e0c879a8f5deaf5cb4a3 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 05 Oct 2009 17:39:37 +0000 Subject: cleaned up pre-0.86 toolbar support --- (limited to 'talogo.py') diff --git a/talogo.py b/talogo.py index 21eb864..161a929 100644 --- a/talogo.py +++ b/talogo.py @@ -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() -- cgit v0.9.1