From: Simon Cross Date: Sat, 10 Sep 2016 11:37:29 +0000 (+0200) Subject: Use some elif. X-Git-Tag: tabakrolletjie-v1.0.0~121 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=49aae450ad70970959da81b0b7b69e7795e2a2ca;p=tabakrolletjie.git Use some elif. --- diff --git a/tabakrolletjie/scenes/day.py b/tabakrolletjie/scenes/day.py index 468c4ca..ec94bc6 100644 --- a/tabakrolletjie/scenes/day.py +++ b/tabakrolletjie/scenes/day.py @@ -174,10 +174,10 @@ class DayScene(BaseScene): if ev.key in (pgl.K_q, pgl.K_ESCAPE): from .menu import MenuScene SceneChangeEvent.post(scene=MenuScene()) - if ev.key == pgl.K_e: + elif ev.key == pgl.K_e: from .night import NightScene SceneChangeEvent.post(scene=NightScene()) - if ev.key == pgl.K_SPACE: + elif ev.key == pgl.K_SPACE: self._paused = not self._paused elif ev.type == pgl.MOUSEBUTTONDOWN: if ev.button == 1: