Clear method for layers.
authorSimon Cross <hodgestar@gmail.com>
Fri, 4 Mar 2016 22:42:11 +0000 (00:42 +0200)
committerSimon Cross <hodgestar@gmail.com>
Fri, 4 Mar 2016 22:42:11 +0000 (00:42 +0200)
koperkapel/scenes/base.py

index 47891a6582784613cf4f12ae81415e32be097d53..481850b2533153afa5ccbb12ea090aae5995bcf9 100644 (file)
@@ -129,6 +129,9 @@ class Layer:
         self.actors.append(actor)
         return actor
 
+    def clear(self):
+        self.actors.clear()
+
     def remove(self, actor):
         self.actors.remove(actor)
         return actor