select all

This commit is contained in:
Ian Jauslin 2021-12-02 18:51:47 -05:00
parent 52f9df3c4d
commit 94406eef23

View File

@ -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: