projects
/
minwii.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
remplacement de la flûte.
[minwii.git]
/
src
/
app
/
widgets
/
instrumentselector.py
diff --git
a/src/app/widgets/instrumentselector.py
b/src/app/widgets/instrumentselector.py
index
6935e03
..
9bafbc3
100755
(executable)
--- a/
src/app/widgets/instrumentselector.py
+++ b/
src/app/widgets/instrumentselector.py
@@
-89,6
+89,13
@@
class InstrumentSelector(pygame.sprite.LayeredDirty, EventHandlerMixin) :
self._inflatedTile = tile
+ @event_handler(pygame.MOUSEBUTTONDOWN)
+ def selectInstrument(self, event) :
+ for tile in reversed(self.sprites()[:-1]) :
+ if tile.rect.collidepoint(*event.pos) :
+ self.selectedInstrument = tile
+ self.stop()
+ break