code: 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 += f 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
docs: Return the currently selected option.