#NEWLINE# def __init__( self , game ) : #NEWLINE# #INDENT# self . game = game #NEWLINE# super ( MineMenuBar , self ) . __init__ ( ) #NEWLINE# body = doc ( ) . getElementsByTagName ( 'body' ) . item ( 0 ) #NEWLINE# body . setAttribute ( 'id' , 'Beginner' ) #NEWLINE# menu_game = MenuBar ( True ) #NEWLINE# menu_game . addItem ( 'New' , MenuCmd ( game , 'New' ) ) #NEWLINE# menu_game . addItem ( self . span_text ( 'Beginner' ) , True , MenuCmd ( self , 'Beginner' ) ) #NEWLINE# menu_game . addItem ( self . span_text ( 'Intermediate' ) , True , MenuCmd ( self , 'Intermediate' ) ) #NEWLINE# menu_game . addItem ( self . span_text ( 'Expert' ) , True , MenuCmd ( self , 'Expert' ) ) #NEWLINE# menu_game . addItem ( self . span_text ( 'Custom' ) , True , MenuCmd ( self , 'Custom' ) ) #NEWLINE# menu_help = MenuBar ( True ) #NEWLINE# menu_help . addItem ( 'About' , MenuCmd ( self , 'About' ) ) #NEWLINE# self . addItem ( MenuItem ( 'Game' , menu_game ) ) #NEWLINE# self . addItem ( MenuItem ( 'Help' , menu_help ) )