#NEWLINE# def _init_grammar( self , parent ) : #NEWLINE# #INDENT# self . _prodlist = ProductionList ( parent , self . _grammar , width = 20 ) #NEWLINE# self . _prodlist . pack ( side = 'top' , fill = 'both' , expand = 1 ) #NEWLINE# self . _prodlist . focus ( ) #NEWLINE# self . _prodlist . add_callback ( 'select' , self . _selectprod_cb ) #NEWLINE# self . _prodlist . add_callback ( 'move' , self . _selectprod_cb )