#NEWLINE# def menuAddLangs( self ) : #NEWLINE# #INDENT# langsMenu = Menu ( self . viewFrame , tearoff = 0 ) #NEWLINE# self . menu . add_cascade ( label = _ ( 'Language' ) , menu = langsMenu , underline = 0 ) #NEWLINE# for lang in sorted ( self . modelXbrl . langs ) : #NEWLINE# #INDENT# langsMenu . add_cascade ( label = lang , underline = 0 , command = ( lambda l = lang : self . setLang ( l ) ) )