def _set_entities(self, entities, entity_wrapper=None):
    if (entity_wrapper is None):
        entity_wrapper = _QueryEntity
    self._entities = []
    self._primary_entity = None
    for ent in util.to_list(entities):
        entity_wrapper(self, ent)
    self._set_entity_selectables(self._entities)
def _set_entities(self, entities, entity_wrapper=None):
    if (entity_wrapper is None):
        entity_wrapper = _QueryEntity
    self._entities = []
    self._primary_entity = None
    for ent in util.to_list(entities):
        entity_wrapper(self, ent)
    self._set_entity_selectables(self._entities)