def set_items(widget, items):
 widget.clear()
 add_items(widget, items)

def set_items ( widget , items ) : widget . clear ( ) add_items ( widget , items )
clear the existing widget contents and set the new items .