Add methods to get all available menu options

This commit is contained in:
Sebastian Lohff 2019-07-18 13:32:23 +02:00
parent f0e5b7bb58
commit 58455be58a
1 changed files with 7 additions and 0 deletions

View File

@ -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]