diff options
author | hut <hut@lavabit.com> | 2013-01-10 03:49:36 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-01-10 03:49:36 +0100 |
commit | d5ccc411a9a8f0904cefbde2d6069575acabb71c (patch) | |
tree | 51d35a8a73493f889d3769da5fa6d81a767a93ae /ranger | |
parent | ec1f3d83fc85c7a82cc9e01f46d19cff10874c28 (diff) | |
download | ranger-d5ccc411a9a8f0904cefbde2d6069575acabb71c.tar.gz |
widgets.console: more documentation
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/gui/widgets/console.py | 18 |
1 files 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): |