projects
/
naja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3fee83
)
Beep in the menu too
author
Neil
<neil@dip.sun.ac.za>
Thu, 15 May 2014 18:38:30 +0000
(20:38 +0200)
committer
Neil
<neil@dip.sun.ac.za>
Thu, 15 May 2014 18:38:30 +0000
(20:38 +0200)
naja/widgets/selector.py
patch
|
blob
|
history
diff --git
a/naja/widgets/selector.py
b/naja/widgets/selector.py
index c5ba07f37a4eb490010155d5b334f0e82c26ed14..656d71ea45c35e715caa112fceda469fd8068c3f 100644
(file)
--- a/
naja/widgets/selector.py
+++ b/
naja/widgets/selector.py
@@
-4,6
+4,7
@@
from naja.constants import KEYS
from naja.widgets.base import Container
from naja.resources import resources
from naja.resources.mutators import EIGHT_BIT, R270
+from naja.sound import sound
class SelectorWidget(Container):
@@
-29,6
+30,7
@@
class SelectorWidget(Container):
else:
self.position -= 1
self.position %= len(self.widgets)
+ sound.play_sound('change_action.ogg')
return True
elif ev.key in KEYS.SELECT:
return self.widgets[self.position].callback('click')