Beep in the menu too
authorNeil <neil@dip.sun.ac.za>
Thu, 15 May 2014 18:38:30 +0000 (20:38 +0200)
committerNeil <neil@dip.sun.ac.za>
Thu, 15 May 2014 18:38:30 +0000 (20:38 +0200)
naja/widgets/selector.py

index c5ba07f37a4eb490010155d5b334f0e82c26ed14..656d71ea45c35e715caa112fceda469fd8068c3f 100644 (file)
@@ -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')