#NEWLINE# def __init__( self , **kwargs ) : #NEWLINE# #INDENT# cls_dicts = kwargs . pop ( 'cls_dicts' ) #NEWLINE# text = kwargs . pop ( 'text' , None ) #NEWLINE# index = kwargs [ 'index' ] #NEWLINE# super ( CompositeListItem , self ) . __init__ ( ** kwargs ) #NEWLINE# for cls_dict in cls_dicts : #NEWLINE# #INDENT# cls = cls_dict [ 'cls' ] #NEWLINE# cls_kwargs = cls_dict . get ( 'kwargs' , None ) #NEWLINE# if cls_kwargs : #NEWLINE# #INDENT# cls_kwargs [ 'index' ] = index #NEWLINE# if ( ( 'text' not in cls_kwargs ) and text ) : #NEWLINE# #INDENT# cls_kwargs [ 'text' ] = text #NEWLINE# #UNINDENT# if ( 'is_representing_cls' in cls_kwargs ) : #NEWLINE# #INDENT# del cls_kwargs [ 'is_representing_cls' ] #NEWLINE# self . representing_cls = cls #NEWLINE# #UNINDENT# self . add_widget ( cls ( ** cls_kwargs ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# cls_kwargs = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# cls_kwargs [ 'index' ] = index #NEWLINE# if ( text is not None ) : #NEWLINE# #INDENT# cls_kwargs [ 'text' ] = text #NEWLINE# #UNINDENT# self . add_widget ( cls ( ** cls_kwargs ) )