diff --git a/painter.py b/painter.py index 435f792..e196f13 100644 --- a/painter.py +++ b/painter.py @@ -93,6 +93,14 @@ class Painter(Widget): self.selected=[] self.draw() + # select all + elif keycode[1]=="a": + for particle in self.particles: + particle.selected=True + self.selected=self.particles.copy() + self.unselected=[] + self.draw() + def on_key_up(self, keyboard, keycode): if keycode[1]=="shift": if 's' in self.modifiers: