From d740dec08e5fffa03e725eb644a58ad1ee740eb6 Mon Sep 17 00:00:00 2001 From: Ian Jauslin Date: Wed, 1 Dec 2021 18:54:37 -0500 Subject: [PATCH] erase particles --- painter.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/painter.py b/painter.py index d54b314..d8deb76 100644 --- a/painter.py +++ b/painter.py @@ -86,6 +86,12 @@ class Painter(Widget): if not 's' in self.modifiers: self.modifiers.append('s') self.modifiers.sort() + # remove particles + elif keycode[1]=="backspace": + for particle in self.selected: + self.particles=remove_fromlist(self.particles,particle) + self.selected=[] + self.draw() def on_key_up(self, keyboard, keycode): if keycode[1]=="shift":