PEP8 fixes.
[naja.git] / naja / widgets / info_area.py
index babf873de9e2d177fd574be12c7259e5d050c89f..f9f2573364ff1e93edf21a0fa8a9b681066eb346 100644 (file)
@@ -17,17 +17,17 @@ from naja.widgets.text import TextBoxWidget, TextWidget
 
 
 HINTS = {
-        ACT: "Choose an action using the Up/Down keys.\n"
-             "Press Return to execute the action.",
-        EXAMINE: "Select a card to examine using the arrow keys."
-        }
+    ACT: ("Choose an action using the Up/Down keys.\n"
+          "Press Return to execute the action."),
+    EXAMINE: "Select a card to examine using the arrow keys.",
+}
 
 HINT_LEGAL_MOVE = "\nPress Return to move to this card."
 
 TITLES = {
-        ACT: "Choose an Action",
-        EXAMINE: "Select a Card",
-        }
+    ACT: "Choose an Action",
+    EXAMINE: "Select a Card",
+}
 
 
 class InfoAreaWidget(Widget):
@@ -118,6 +118,7 @@ class InfoAreaWidget(Widget):
                 player = self.state.player
                 action = self.card.actions[self.chosen]
                 if not action.check_available(player):
+                    sound.play_sound('error.ogg')
                     print "BEEP!"
                 else:
                     action.perform_action(self.state.gameboard, self.card)