Mercurial > urwid-satext
changeset 124:db9bc68ca0a8
minor docstring correction
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 12 Jul 2016 20:23:07 +0200 |
parents | f2589475269f |
children | 33cb9a05ff84 |
files | urwid_satext/sat_widgets.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/urwid_satext/sat_widgets.py Sat Mar 05 14:32:35 2016 +0100 +++ b/urwid_satext/sat_widgets.py Tue Jul 12 20:23:07 2016 +0200 @@ -63,14 +63,16 @@ def setCompletionMethod(self, callback): """Define method called when completion is asked + @callback: method with 2 arguments: - - the text to complete + - the text to complete (part after cursor position is ignored) - if there was already a completion, a dict with - 'completed':last completion - 'completion_pos': cursor position where the completion starts - 'position': last completion cursor position this dict must be used (and can be filled) to find next completion) - and which return the full text completed""" + and which return the full text completed + """ self.completion_cb = callback self.completion_data = {}