Mercurial > urwid-satext
comparison urwid_satext/sat_widgets.py @ 109:13d608824508
added AdvancedEdit.getValue
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 20 Aug 2015 18:37:52 +0200 |
parents | 5bb3b7e25bf6 |
children | 436076392538 |
comparison
equal
deleted
inserted
replaced
108:5bb3b7e25bf6 | 109:13d608824508 |
---|---|
55 - C-e: like 'end' | 55 - C-e: like 'end' |
56 - C-k: remove everything on the right of the cursor | 56 - C-k: remove everything on the right of the cursor |
57 - C-w: remove the word on the back | 57 - C-w: remove the word on the back |
58 new behaviour: emit a 'click' signal when enter is pressed""" | 58 new behaviour: emit a 'click' signal when enter is pressed""" |
59 signals = urwid.Edit.signals + ['click'] | 59 signals = urwid.Edit.signals + ['click'] |
60 | |
61 def getValue(self): | |
62 return self.get_edit_text() | |
60 | 63 |
61 def setCompletionMethod(self, callback): | 64 def setCompletionMethod(self, callback): |
62 """Define method called when completion is asked | 65 """Define method called when completion is asked |
63 @callback: method with 2 arguments: | 66 @callback: method with 2 arguments: |
64 - the text to complete | 67 - the text to complete |