def ListItemsIterator(self): """A generator that yields a n-tuple with all items of a row.""" ncols = self.GetColumnCount() for item in self.GetItemCount(): values = [] for col in range(ncols): values.Append(self.GetItem(item, col)) yield values