<s> from __future__ import division , print_function , unicode_literals <EOL> import sys <EOL> import os <EOL> sys . path . insert ( <NUM_LIT:0> , os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT:..>' ) ) <EOL> testinfo = "<STR_LIT>" <EOL> tags = "<STR_LIT>" <EOL> from pyglet import image <EOL> from pyglet . gl import * <EOL> from pyglet import font <EOL> from cocos . director import * <EOL> from cocos . menu import * <EOL> from cocos . scene import * <EOL> from cocos . layer import * <EOL> class MainMenu ( Menu ) : <EOL> def __init__ ( self ) : <EOL> super ( MainMenu , self ) . __init__ ( "<STR_LIT>" ) <EOL> self . menu_valign = TOP <EOL> self . menu_halign = LEFT <EOL> items = [ <EOL> ( MenuItem ( '<STR_LIT>' , self . on_quit ) ) , <EOL> ( MenuItem ( '<STR_LIT>' , self . on_quit ) ) , <EOL> ( MenuItem ( '<STR_LIT>' , self . on_quit ) ) , <EOL> ( MenuItem ( '<STR_LIT>' , self . on_quit ) ) , <EOL> ] <EOL> self . create_menu ( items , selected_effect = zoom_in ( ) , <EOL> unselected_effect = zoom_out ( ) ) <EOL> def on_quit ( self ) : <EOL> pyglet . app . exit ( ) <EOL> def main ( ) : <EOL> pyglet . font . add_directory ( '<STR_LIT:.>' ) <EOL> director . init ( resizable = True ) <EOL> director . run ( Scene ( MainMenu ( ) ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
