From 84257ce849ca6ef36736ce4f35951a6787ac5a00 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sun, 14 Feb 2016 14:56:07 +0100 Subject: Correct Edit documentation There were missing doc comments for a few basic properties, + the text about `edit_text` property being a read-only property was a lie. --- urwid/widget.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/urwid/widget.py b/urwid/widget.py index 661e7ed..42551af 100644 --- a/urwid/widget.py +++ b/urwid/widget.py @@ -1289,7 +1289,9 @@ class Edit(Text): self._caption, self._attrib = decompose_tagmarkup(caption) self._invalidate() - caption = property(lambda self:self._caption) + caption = property(lambda self:self._caption, doc=""" + Read-only property returning the caption for this widget. + """) def set_edit_pos(self, pos): """ @@ -1321,7 +1323,9 @@ class Edit(Text): self._edit_pos = pos self._invalidate() - edit_pos = property(lambda self:self._edit_pos, set_edit_pos) + edit_pos = property(lambda self:self._edit_pos, set_edit_pos, doc=""" + Property controlling the edit position for this widget. + """) def set_mask(self, mask): """ @@ -1373,7 +1377,7 @@ class Edit(Text): return self._edit_text edit_text = property(get_edit_text, set_edit_text, doc=""" - Read-only property returning the edit text for this widget. + Property controlling the edit text for this widget. """) def insert_text(self, text): -- cgit v1.2.1