# HG changeset patch # User Goffi # Date 1468347787 -7200 # Node ID db9bc68ca0a8d3e45e14af85e41990925492a186 # Parent f2589475269f37331e536bb8f393fad7a0276d41 minor docstring correction diff -r f2589475269f -r db9bc68ca0a8 urwid_satext/sat_widgets.py --- 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 = {}