From: Simon Cross Date: Fri, 4 Mar 2016 22:42:11 +0000 (+0200) Subject: Clear method for layers. X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=ea5082ffa263fef33513b0ac77fa928522b5cbd0;p=koperkapel.git Clear method for layers. --- 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