

def current(self, newindex=None):
    'If newindex is supplied, sets the combobox value to the\n        element at position newindex in the list of values. Otherwise,\n        returns the index of the current value in the list of values\n        or -1 if the current value does not appear in the list.'
    if (newindex is None):
        return self.tk.getint(self.tk.call(self._w, 'current'))
    return self.tk.call(self._w, 'current', newindex)

dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/lib-tk/ttk.py Combobox.current/original