Set the active item to the one given by index. If index is outside the range of items, the closest item is activated instead. The active item is drawn as specified by the activestyle option when the widget has the input focus, and its index may be retrieved with the 'active' index.