Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tawindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArt/tawindow.py')
-rw-r--r--TurtleArt/tawindow.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index 58b939d..338675a 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -328,6 +328,12 @@ class TurtleArtWindow():
for plugin in self._plugins:
plugin.stop()
+ def clear_plugins(self):
+ """ Clear is called from the clean block and erase button """
+ for plugin in self._plugins:
+ if hasattr(plugin, 'clear'):
+ plugin.clear()
+
def background_plugins(self):
""" Background is called when we are pushed to the background. """
for plugin in self._plugins: