'Modify the list of items contained by this list.'

def set(self, items):

    items = list(items)
    if (self._items == items):
        return
    self._items = list(items)
    self._textwidget['state'] = 'normal'
    self._textwidget.delete('1.0', 'end')
    for item in items:
        for (text, colortag) in self._item_repr(item):
            assert ('\n' not in text), 'item    repr    may    not    contain    newline'
            self._textwidget.insert('end', text, colortag)
        self._textwidget.insert('end', '\n')
    self._textwidget.delete('end-1char', 'end')
    self._textwidget.mark_set('insert', '1.0')
    self._textwidget['state'] = 'disabled'
    self._marks.clear()
