edit prompt_choice's documentation
This commit is contained in:
parent
fe6763a33f
commit
ad4426d55d
1 changed files with 3 additions and 2 deletions
|
|
@ -490,8 +490,9 @@ def prompt_choice(caller, question="", prompts=None, choicefunc=None, force_choo
|
||||||
making use of the menu node system.
|
making use of the menu node system.
|
||||||
|
|
||||||
prompts - prompts of choices
|
prompts - prompts of choices
|
||||||
funcs - functions callback to be called as func(self) when make choice (self.caller is available)
|
choicefunc - functions callback to be called as func(self) when make choice (self.caller is available)
|
||||||
no_choice - user can make no choice and exit
|
The function's definision should be like func(self, menu_node), and menu_node.key is user's choice.
|
||||||
|
force_choose - force user to make a choice or not
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# creating and defining commands
|
# creating and defining commands
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue