def set_responses(self, json_list):
        """
        Set the given i3status responses on their respective configuration.
        """
        self.update_json_list()
        updates = []
        for index, item in enumerate(self.json_list):
            conf_name = self.py3_config["i3s_modules"][index]

            module = self.i3modules[conf_name]
            if module.update_from_item(item):
                updates.append(conf_name)
        if updates:
            self.py3_wrapper.notify_update(updates)
def set_responses ( self , json_list ) : self . update_json_list ( ) updates = [ ] for index , item in enumerate ( self . json_list ) : conf_name = self . py3_config [ "i3s_modules" ] [ index ] module = self . i3modules [ conf_name ] if module . update_from_item ( item ) : updates . append ( conf_name ) if updates : self . py3_wrapper . notify_update ( updates )
Set the given i3status responses on their respective configuration.