Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TurtleArt/talogo.py8
-rw-r--r--TurtleArt/tawindow.py2
2 files changed, 8 insertions, 2 deletions
diff --git a/TurtleArt/talogo.py b/TurtleArt/talogo.py
index 29d05d9..8acc1b8 100644
--- a/TurtleArt/talogo.py
+++ b/TurtleArt/talogo.py
@@ -188,10 +188,14 @@ class LogoCode:
return sym
def run_blocks(self, code):
+ """Run code generated by generate_code().
+ """
self.start_time = time()
self._setup_cmd(code)
def generate_code(self, blk, blocks):
+ """ Generate code to be passed to run_blocks() from a stack of blocks.
+ """
for k in self.stacks.keys():
self.stacks[k] = None
self.stacks['stack1'] = None
@@ -849,7 +853,9 @@ class LogoCode:
def _expand_forever(self, b, blk, blocks):
""" Expand a while or until block into: forever, ifelse, stopstack
- Expand a forever block to run in a separate stack """
+ Expand a forever block to run in a separate stack
+ Parameters: the loop block, the top block, all blocks.
+ Return the start block of the expanded loop, and all blocks."""
# TODO: create a less brittle way of doing this; having to
# manage the connections and flows locally means we may run
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index 731260f..dc15269 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -347,7 +347,7 @@ class TurtleArtWindow():
pname = os.path.join(path, dirname, dirname + '.py')
if os.path.exists(pname):
plugin_files.append(dirname)
- return plugin_files
+ return plugin_files
def _init_plugins(self):
''' Try importing plugin files from the plugin dir. '''