From ad4426d55d52e164081f29c7fadfa717742a3899 Mon Sep 17 00:00:00 2001 From: luyijun Date: Tue, 16 Dec 2014 23:48:10 +0800 Subject: [PATCH] edit prompt_choice's documentation --- contrib/menusystem.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/menusystem.py b/contrib/menusystem.py index 51915334cf..0277a33e60 100644 --- a/contrib/menusystem.py +++ b/contrib/menusystem.py @@ -490,8 +490,9 @@ def prompt_choice(caller, question="", prompts=None, choicefunc=None, force_choo making use of the menu node system. prompts - prompts of choices - funcs - functions callback to be called as func(self) when make choice (self.caller is available) - no_choice - user can make no choice and exit + choicefunc - functions callback to be called as func(self) when make choice (self.caller is available) + 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