From 94406eef23b26f5cb26a1e46760a0abfb7eec614 Mon Sep 17 00:00:00 2001 From: Ian Jauslin Date: Thu, 2 Dec 2021 18:51:47 -0500 Subject: [PATCH] select all --- painter.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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: