From 0d93925aa8f043fbefa0e46d7cab48deac30dda3 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 11 Nov 2013 21:56:13 +0000 Subject: Alan's fix to my blocks palette name --- diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py index 6ca07d6..f96a178 100644 --- a/TurtleArt/tawindow.py +++ b/TurtleArt/tawindow.py @@ -1627,9 +1627,9 @@ before making changes to your program')) self._restore_from_trash(find_top_block(blk)) elif blk.type == 'proto': if self.deleting_blocks: - if 'my blocks' in palette_names and \ + if 'myblocks' in palette_names and \ self.selected_palette == \ - palette_names.index('my blocks'): + palette_names.index('myblocks'): self._delete_stack_alert(blk) self.parent.get_window().set_cursor( gtk.gdk.Cursor(gtk.gdk.LEFT_PTR)) @@ -1838,7 +1838,7 @@ before making changes to your program')) error_output('Could not remove macro %s: %s' % (macro_path, e)) return - i = palette_names.index('my blocks') + i = palette_names.index('myblocks') palette_blocks[i].remove(blk.name) for pblk in self.palettes[i]: if pblk.name == blk.name: diff --git a/plugins/turtle_blocks_extras/turtle_blocks_extras.py b/plugins/turtle_blocks_extras/turtle_blocks_extras.py index e6f2989..1e9b2e4 100644 --- a/plugins/turtle_blocks_extras/turtle_blocks_extras.py +++ b/plugins/turtle_blocks_extras/turtle_blocks_extras.py @@ -1102,7 +1102,7 @@ Journal objects')) files = glob.glob(os.path.join(self.tw.macros_path, '*.tb')) if len(files) > 0: palette = make_palette( - 'my blocks', + 'myblocks', colors=["#FFFF00", "#A0A000"], help_string=_('Palette of user-defined operators'), translation=_('my blocks')) -- cgit v0.9.1