Closed rickerp closed 3 years ago
@rickerp Thank you for your pull request.
@rickerp Could you tell me where do you found out about this project?
@rickerp Could you tell me where do you found out about this project?
Literally search python terminal menu and this popped out in PyPi
@rickerp Could you tell me where do you found out about this project?
Literally search python terminal menu and this popped out in PyPi
I see. thanks.
Features added:
__init__(self, choices=[], actions=[])
select_index(self, message=None)
select_action(self, message=None)
Actions
Add support for actions, so when you call
select_action()
the respective action (function) for the option selected is called For example:Dictionary support
Add support to add choices and actions by a dictionary
__init__
Add the possibility to initialize the class with choices and action instead of later add it with
add_choices
select_index
Function that does the same that
select()
but it returns the indexselect_action
Function that does the same that
select()
but when the option is selected it calls the respective action/function of that option