parameters: (self, count)
docstring: Sets the total number of items we handle.
  
          :param `count`: the total number of items we handle.
docstring_summary: Sets the total number of items we handle.
docstring_tokens: Sets the total number of items we handle .
function: def SetItemCount(self, count):
          """
          Sets the total number of items we handle.
  
          :param `count`: the total number of items we handle.
          """
  
          # forget about all items whose indices are now invalid if the size
          # decreased
          if count < self._count:
              for i in xrange(len(self._itemsSel), 0, -1):
                  if self._itemsSel[i - 1] >= count:
                      self._itemsSel.pop(i - 1)
              
          # remember the new number of items
          self._count = count
function_tokens: def SetItemCount ( self , count ) : # forget about all items whose indices are now invalid if the size # decreased if count < self . _count : for i in xrange ( len ( self . _itemsSel ) , 0 , - 1 ) : if self . _itemsSel [ i - 1 ] >= count : self . _itemsSel . pop ( i - 1 ) # remember the new number of items self . _count = count