Skip to content

Commit

Permalink
Added append_string to SelectionMenu
Browse files Browse the repository at this point in the history
Fixes #12
  • Loading branch information
pmbarrett314 committed Mar 3, 2016
1 parent 19c3c39 commit f1ec010
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cursesmenu/selection_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ def get_selection(cls, strings, title="Select an option", subtitle=None, exit_op
menu.show()
menu.join()
return menu.selected_option

def append_string(self, string):
self.append_item(SelectionItem(string))

0 comments on commit f1ec010

Please sign in to comment.