summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunai <andunai@gmail.com>2018-01-04 11:06:46 +0200
committerGitHub <noreply@github.com>2018-01-04 11:06:46 +0200
commit2c63148dc756168e085074bded033dfc0eae1699 (patch)
tree6fc5e455fce796225ae3a024b1431ebffb1fa7d1
parent2920475c0068d40cadd31d58650d9cfd7a1c2394 (diff)
parent84257ce849ca6ef36736ce4f35951a6787ac5a00 (diff)
downloadurwid-2c63148dc756168e085074bded033dfc0eae1699.tar.gz
Merge pull request #176 from rr-/patch-2
Correct Edit documentation
-rw-r--r--urwid/widget.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/urwid/widget.py b/urwid/widget.py
index 98c1905..7901f9b 100644
--- a/urwid/widget.py
+++ b/urwid/widget.py
@@ -1301,7 +1301,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):
"""
@@ -1333,7 +1335,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):
"""
@@ -1387,7 +1391,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):