From d5ccc411a9a8f0904cefbde2d6069575acabb71c Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 10 Jan 2013 03:49:36 +0100 Subject: widgets.console: more documentation --- ranger/gui/widgets/console.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py index ced7decf..da7e346d 100644 --- a/ranger/gui/widgets/console.py +++ b/ranger/gui/widgets/console.py @@ -50,17 +50,17 @@ class Console(Widget): self.line = "" self.history_backup = History(self.history) - # NOTE: the console is considered in the "question mode" when - # the question_queue is non-empty. In that case, the console - # will draw the question instead of the regular console, and - # the input you give is used to answer the question instead - # of typing in commands. + # NOTE: the console is considered in the "question mode" when the + # question_queue is non-empty. In that case, the console will draw the + # question instead of the regular console, and the input you give is + # used to answer the question instead of typing in commands. # # A question is a tuple of (question_string, callback_func, - # tuple_of_choices). callback_func is a function that is - # called when the question is answered which gets the answer - # as an argument. tuple_of_choices looks like ('y', 'n'). - # Only one-letter-answers are currently supported. + # tuple_of_choices). callback_func is a function that is called when + # the question is answered which gets the answer as an argument. + # tuple_of_choices looks like ('y', 'n'). Only one-letter-answers are + # currently supported. Pressing enter uses the first choice whereas + # pressing ESC uses the second choice. self.question_queue = [] def destroy(self): -- cgit 1.4.1-2-gfad0