5 from naja.widgets.base import Container
10 A scene within the game.
12 E.g. Splash screen, game board, credits, win, lose.
14 def __init__(self, state):
16 self.container = Container()
18 def add(self, widget):
19 self.container.add(widget)
27 def render_scene(self, surface):
30 def render(self, surface):
31 self.render_scene(surface)
32 self.container.render(surface)
34 def handle_event(self, ev):
35 if self.container.handle_event(ev):
37 self.handle_scene_event(ev)
39 def handle_scene_event(ev):