#NEWLINE# def __init__( self , name ) : #NEWLINE# #INDENT# if ( name in self . __class__ . _registry ) : #NEWLINE# #INDENT# raise Exception ( 'A menu with this name already exists' ) #NEWLINE# #UNINDENT# self . name = name #NEWLINE# self . bound_links = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . unbound_links = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . link_positions = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . __class__ . _registry [ name ] = self