Browse Source

Add methods to get all available menu options

master
Sebastian Lohff 3 years ago
parent
commit
58455be58a
  1. 7
      clintermission/climenu.py

7
clintermission/climenu.py

@ -118,6 +118,13 @@ class CliMenu: @@ -118,6 +118,13 @@ class CliMenu:
return self._success
def get_options(self):
return self._items
@property
def num_options(self):
return len(self._items)
def get_selection(self):
if self.success:
item = self._items[self._pos]

Loading…
Cancel
Save