

@property
def selected_option(self):
    ' Return the currently selected option. '
    i = 0
    for category in self.options:
        for o in category.options:
            if (i == self.selected_option_index):
                return o
            else:
                i += 1

dataset/ETHPy150Open jonathanslenders/ptpython/ptpython/python_input.py PythonInput.selected_option/original