code: def setQuery(self, query, autoRefresh=True):
          
          self._query = query
          
          tableType = self.tableType()
          if not tableType:
              return False
          
          if autoRefresh:
              self.refresh(tableType.select(where = query))
          
          return True
docs: Sets the query for this record box for generating records.
          
          :param      query | <Query> || None