diff urwid_satext/sat_widgets.py @ 124:db9bc68ca0a8

minor docstring correction
author Goffi <goffi@goffi.org>
date Tue, 12 Jul 2016 20:23:07 +0200
parents 00b012549f88
children 88722f920b3c
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 = {}