diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2010-02-19 21:23:05 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2010-02-19 21:23:05 (GMT) |
commit | 50d5969b25bc6b14f498e72c20a0b636a39b491f (patch) | |
tree | 5015276d5a960a1e1eef960dfbfd17a3dad14172 /talogo.py | |
parent | e42ca9bdee7613eb307717bcdd9f9079bdf75023 (diff) |
added pseudo toolbar for running outside Sugar
Diffstat (limited to 'talogo.py')
-rw-r--r-- | talogo.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -35,7 +35,7 @@ try: except: pass -from taconstants import PALETTES, PALETTE_NAMES, BOX_STYLE +from taconstants import PALETTES, PALETTE_NAMES, BOX_STYLE, TAB_LAYER from tagplay import play_audio, play_movie_from_file, stop_media from tajail import myfunc, myfunc_import from tautils import get_pixbuf_from_journal, movie_media_type,\ @@ -566,11 +566,15 @@ class LogoCode: def start_eval(self, list): if self.tw.running_sugar: self.tw.activity.stop_button.set_icon("stopiton") + else: + self.tw.toolbar_shapes['stopiton'].set_layer(TAB_LAYER) self.running = True self.icall(self.evline, list) yield True if self.tw.running_sugar: self.tw.activity.stop_button.set_icon("stopitoff") + else: + self.tw.toolbar_shapes['stopiton'].hide() yield False self.running = False |