diff options
author | Walter Bender <walter.bender@gmail.com> | 2011-08-20 13:12:15 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2011-08-20 13:12:15 (GMT) |
commit | 77b71c1b6d17ccf6989d61feeda1d100510b493b (patch) | |
tree | 90f30b0d01c4c0a575cb06d1165529a4cbbb2422 | |
parent | 64bc6b7e2d4ffd98c99026e70153f9377bc25fc1 (diff) |
add running_sugar flag to debug_output calls
-rw-r--r-- | TurtleArt/tawindow.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py index f38b503..d08234f 100644 --- a/TurtleArt/tawindow.py +++ b/TurtleArt/tawindow.py @@ -109,7 +109,8 @@ class TurtleArtWindow(): self.gc = self.area.new_gc() else: # We lose... - debug_output('drawable area is None... punting') + debug_output('drawable area is None... punting', + self.running_sugar) exit() self._setup_events() elif type(win) == gtk.gdk.Pixmap: @@ -298,9 +299,16 @@ class TurtleArtWindow(): try: exec f in globals(), plugins self._plugins.append(plugins.values()[0](self)) - # debug_output('successfully importing %s' % (plugin_class)) + debug_output('successfully importing %s' % (plugin_class), + self.running_sugar) except ImportError: - debug_output('failed to import %s' % (plugin_class)) + debug_output('failed to import %s' % (plugin_class), + self.running_sugar) + ''' + exec f in globals(), plugins + self._plugins.append(plugins.values()[0](self)) + debug_output('successfully importing %s' % (plugin_class)) + ''' # Add the icon dir for each plugin to the icon_theme search path for plugin_dir in self._get_plugins_from_plugins_dir( @@ -1796,7 +1804,6 @@ class TurtleArtWindow(): elif blk.name in COLLAPSIBLE or blk.name == 'sandwichtop_no_label': if blk.name == 'sandwichtop_no_label': - debug_output('>>>>>>>>> HIT SANDWICHTOP') if hide_button_hit(blk.spr, x, y): collapse_stack(blk) else: |