summaryrefslogtreecommitdiff
path: root/urwid/widget.py
diff options
context:
space:
mode:
authorIan Ward <ian@excess.org>2012-05-21 21:47:15 -0400
committerIan Ward <ian@excess.org>2012-05-21 21:47:15 -0400
commitef2e6aebea204fa4dcfaa27daaa31bdc942fbc10 (patch)
tree31c25f53bb5f7dd3e570bb1f70c5a9f51f226fa1 /urwid/widget.py
parentee335f8388624f2b9c920f850e12428bc5e65c05 (diff)
parent799c23dd22b62cdcceae9648dd169b71eadcc7ca (diff)
downloadurwid-ef2e6aebea204fa4dcfaa27daaa31bdc942fbc10.tar.gz
Merge pazz/sphinx
--HG-- branch : feature-sphinx
Diffstat (limited to 'urwid/widget.py')
-rw-r--r--urwid/widget.py21
1 files changed, 13 insertions, 8 deletions
diff --git a/urwid/widget.py b/urwid/widget.py
index 4d8ad73..94b7664 100644
--- a/urwid/widget.py
+++ b/urwid/widget.py
@@ -611,11 +611,14 @@ class Divider(Widget):
def __init__(self,div_char=u" ",top=0,bottom=0):
"""
- Create a horizontal divider widget.
+ :param div_char: character to repeat across line
+ :type div_char: string
- div_char -- character to repeat across line
- top -- number of blank lines above
- bottom -- number of blank lines below
+ :param top: number of blank lines above
+ :type top: int
+
+ :param bottom:number of blank lines below
+ :type bottom: int
>>> Divider()
<Divider flow widget>
@@ -671,15 +674,17 @@ class Divider(Widget):
class SolidFill(BoxWidget):
+ """
+ A box widget that fills an area with a single character
+ """
_selectable = False
ignore_focus = True
def __init__(self, fill_char=" "):
"""
- Create a box widget that will fill an area with a single
- character.
-
- fill_char -- character to fill area with
+ :param fill_char: character to fill area with
+ :type fill_char: string
+ """
>>> SolidFill(u'8')
<SolidFill box widget '8'>