library.py
def build_artists_store(self, store, list_filter=None):
        """
        list_filter type
        ------------------------------
        None              No filter
        function          The artist object is passed as a parameter for each artist. Returns True if the artist should be included.
        string (1 char)   Artists beginning with that letter are filtered
        """
        if type(list_filter) is str:
            filter_fun = lambda x: x.name[0].upper() == list_filter.upper()
        elif callable(list_filter):
            filter_fun = list_filter
        else:
            filter_fun = lambda x: True

        self.artists_store = [x for x in dict_to_list(self.artists) if filter_fun(x)]
        self.artists_store.sort(key=lambda x: x.name)
        
        store.clear()
        for artist in self.artists_store:
            store.append(None, self.create_artist(artist))

        list_filter type
        ------------------------------
        None              No filter
        function          The artist object is passed as a parameter for each artist. Returns True if the artist should be included.
        string (1 char)   Artists beginning with that letter are filtered
        
list_filter type
None              No filter
function          The artist object is passed as a parameter for each artist. Returns True if the artist should be included.
string (1 char)   Artists beginning with that letter are filtered
list_filter type None No filter function The artist object is passed as a parameter for each artist . Returns True if the artist should be included . string ( 1 char ) Artists beginning with that letter are filtered
def build_artists_store(self, store, list_filter=None):
        if type(list_filter) is str:
            filter_fun = lambda x: x.name[0].upper() == list_filter.upper()
        elif callable(list_filter):
            filter_fun = list_filter
        else:
            filter_fun = lambda x: True
        self.artists_store = [x for x in dict_to_list(self.artists) if filter_fun(x)]
        self.artists_store.sort(key=lambda x: x.name)
        store.clear()
        for artist in self.artists_store:
            store.append(None, self.create_artist(artist))
def build_artists_store ( self , store , list_filter = None ) : if type ( list_filter ) is str : filter_fun = lambda x : x . name [ 0 ] . upper ( ) == list_filter . upper ( ) elif callable ( list_filter ) : filter_fun = list_filter else : filter_fun = lambda x : True self . artists_store = [ x for x in dict_to_list ( self . artists ) if filter_fun ( x ) ] self . artists_store . sort ( key = lambda x : x . name ) store . clear ( ) for artist in self . artists_store : store . append ( None , self . create_artist ( artist ) )
list_filter type
None              No filter
function          The artist object is passed as a parameter for each artist.
list_filter type None No filter function The artist object is passed as a parameter for each artist .
"""
        list_filter type
        ------------------------------
        None              No filter
        function          The artist object is passed as a parameter for each artist. Returns True if the artist should be included.
        string (1 char)   Artists beginning with that letter are filtered
        """
self
store
list_filter