From ea5082ffa263fef33513b0ac77fa928522b5cbd0 Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Sat, 5 Mar 2016 00:42:11 +0200 Subject: [PATCH] Clear method for layers. --- koperkapel/scenes/base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koperkapel/scenes/base.py b/koperkapel/scenes/base.py index 47891a6..481850b 100644 --- a/koperkapel/scenes/base.py +++ b/koperkapel/scenes/base.py @@ -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 -- 2.34.1