#NEWLINE# def __init__( self , **kwargs ) : #NEWLINE# #INDENT# if ( 'adapter' not in kwargs ) : #NEWLINE# #INDENT# if ( 'item_strings' not in kwargs ) : #NEWLINE# #INDENT# list_adapter = SimpleListAdapter ( data = [ ] , cls = Label ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# list_adapter = SimpleListAdapter ( data = self [ 'item_strings' ] , cls = Label ) #NEWLINE# #UNINDENT# kwargs [ 'adapter' ] = list_adapter #NEWLINE# #UNINDENT# super ( ListView , self ) . __init__ ( ** kwargs ) #NEWLINE# populate = self . _trigger_populate = Clock . create_trigger ( self . _spopulate , ( - 1 ) ) #NEWLINE# self . _trigger_reset_populate = Clock . create_trigger ( self . _reset_spopulate , ( - 1 ) ) #NEWLINE# fbind = self . fbind #NEWLINE# fbind ( 'size' , populate ) #NEWLINE# fbind ( 'pos' , populate ) #NEWLINE# fbind ( 'item_strings' , self . item_strings_changed ) #NEWLINE# fbind ( 'adapter' , populate ) #NEWLINE# bind_adapter = self . _trigger_bind_adapter = Clock . create_trigger ( ( lambda dt : self . adapter . bind_triggers_to_view ( self . _trigger_reset_populate ) ) , ( - 1 ) ) #NEWLINE# fbind ( 'adapter' , bind_adapter ) #NEWLINE# bind_adapter ( )