From: Neil Date: Thu, 15 May 2014 18:38:30 +0000 (+0200) Subject: Beep in the menu too X-Git-Tag: 0.1~276 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=c4807b3f86eed470f109a7e1f1cae68428cdab8d;p=naja.git Beep in the menu too --- diff --git a/naja/widgets/selector.py b/naja/widgets/selector.py index c5ba07f..656d71e 100644 --- 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')