X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fscenes%2Fwin.py;fp=naja%2Fscenes%2Fwin.py;h=f8b42b32e63f49cd239d08177bc648ea8f4eac76;hb=49bb7e7e08cd19861fb61279d250d486b0b3a600;hp=77df66f6a15bbb1164be9a143329baeb422579bf;hpb=30397c438de56dd2913eef42a7a6bed424234318;p=naja.git diff --git a/naja/scenes/win.py b/naja/scenes/win.py index 77df66f..f8b42b3 100644 --- a/naja/scenes/win.py +++ b/naja/scenes/win.py @@ -5,7 +5,7 @@ Win scene. import pygame.locals as pgl from naja.constants import KEYS, PALETTE -from naja.events import QuitGameEvent +from naja.events import SceneChangeEvent from naja.scenes.scene import Scene from naja.widgets.image_box import ImageBox from naja.widgets.text import TextWidget, TextBoxWidget @@ -31,12 +31,15 @@ class WinScene(Scene): "You're great.", "You did well.", "You should be proud of yourself.", + "", + "Press ESC to return to the menu", ]), colour=PALETTE.WHITE, padding=1, border=1, bg_colour=PALETTE.BLACK, border_colour=PALETTE.BLACK, box_width=300)) def handle_scene_event(self, ev): + from naja.scenes.menu import MenuScene if ev.type == pgl.KEYDOWN and ev.key in KEYS.QUIT: - QuitGameEvent.post() + SceneChangeEvent.post(MenuScene) return