class Window(arcade.Window): def __init__(self): super().__init__(600, 760, 'move') self.curtains = Curtains(self) self.curtains.add_scenes({ 'scene': AppScene(), }) self.curtains.set_scene('scene')
def curtains(): window = Mock() curtains = Curtains(window) scene1 = Scene() scene2 = Scene() curtains.add_scenes({ 'scene1': scene1, 'scene2': scene2, }) curtains.set_scene('scene1') return curtains
def _curtains(**kwargs): window = Mock() curtains = Curtains(window, **kwargs) scene1 = Scene() scene2 = Scene() curtains.add_scenes({ 'scene1': scene1, 'scene2': scene2, }) curtains.set_scene('scene1') return curtains
class Window(arcade.Window): def __init__(self): super().__init__(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE) self.curtains = Curtains(self) self.curtains.add_scenes({ 'scene1': CharacterDevelopment(), 'scene2': PlotTwist(), 'scene3': DeusExMachina() }) def setup(self): self.curtains.set_scene('scene1')