Updated advanced_select()
This commit is contained in:
parent
21b44d01ff
commit
428bb5a05c
1 changed files with 3 additions and 4 deletions
|
|
@ -312,19 +312,18 @@ class Menu():
|
||||||
|
|
||||||
The menu can only be exited by selecting an action."""
|
The menu can only be exited by selecting an action."""
|
||||||
while True:
|
while True:
|
||||||
# Resolve selection status for sets
|
|
||||||
self._update(single_selection=False)
|
self._update(single_selection=False)
|
||||||
user_selection = self._user_select(prompt)
|
user_selection = self._user_select(prompt)
|
||||||
|
selected_entry = self._resolve_selection(user_selection)
|
||||||
if user_selection.isnumeric():
|
if user_selection.isnumeric():
|
||||||
# Update selection(s)
|
# Update selection(s)
|
||||||
entry = self._resolve_selection(user_selection)[0]
|
self._update_entry_selection_status(selected_entry[0])
|
||||||
self._update_entry_selection_status(entry)
|
|
||||||
else:
|
else:
|
||||||
# Action selected
|
# Action selected
|
||||||
break
|
break
|
||||||
|
|
||||||
# Done
|
# Done
|
||||||
return self._resolve_selection(user_selection)
|
return selected_entry
|
||||||
|
|
||||||
def simple_select(self, prompt='Please make a selection...'):
|
def simple_select(self, prompt='Please make a selection...'):
|
||||||
"""Display menu and make a single selection, returns tuple."""
|
"""Display menu and make a single selection, returns tuple."""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue