From bafc3af46696397b4541368e46ff3f360d000be8 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sat, 21 Jul 2012 18:22:36 +0000 Subject: expose new_macro method to public --- (limited to 'TurtleArt/tawindow.py') diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py index 7e58de4..fc40478 100644 --- a/TurtleArt/tawindow.py +++ b/TurtleArt/tawindow.py @@ -1302,7 +1302,7 @@ class TurtleArtWindow(): if b.type != 'trash': self._put_in_trash(find_top_block(b)) elif blk.name in MACROS: - self._new_macro(blk.name, x + 20, y + 20) + self.new_macro(blk.name, x + 20, y + 20) else: defaults = None name = blk.name @@ -1798,7 +1798,7 @@ class TurtleArtWindow(): elif newblk.spr.labels[0] not in self.used_block_list: self.used_block_list.append(newblk.spr.labels[0]) - def _new_macro(self, name, x, y): + def new_macro(self, name, x, y): ''' Create a "macro" (predefined stack of blocks). ''' macro = MACROS[name] macro[0][2] = x -- cgit v0.9.1