diff options
-rw-r--r-- | alot/widgets/globals.py | 4 | ||||
-rw-r--r-- | alot/widgets/namedqueries.py | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/alot/widgets/globals.py b/alot/widgets/globals.py index 7ac1332c..f27e25b8 100644 --- a/alot/widgets/globals.py +++ b/alot/widgets/globals.py @@ -19,6 +19,7 @@ class AttachmentWidget(urwid.WidgetWrap): """ one-line summary of an :class:`~alot.db.attachment.Attachment`. """ + def __init__(self, attachment, selectable=True): self._selectable = selectable self.attachment = attachment @@ -103,6 +104,7 @@ class CompleteEdit(urwid.Edit): :ctrl u: deletes everything from the cursor to the beginning of the input """ + def __init__(self, completer, on_exit, on_error=None, edit_text=u'', @@ -232,6 +234,7 @@ class CompleteEdit(urwid.Edit): class HeadersList(urwid.WidgetWrap): """ renders a pile of header values as key/value list """ + def __init__(self, headerslist, key_attr, value_attr, gaps_attr=None): """ :param headerslist: list of key/value pairs to display @@ -283,6 +286,7 @@ class TagWidget(urwid.AttrMap): :attr tag: the notmuch tag :type tag: str """ + def __init__(self, tag, fallback_normal=None, fallback_focus=None): self.tag = tag representation = settings.get_tagstring_representation(tag, diff --git a/alot/widgets/namedqueries.py b/alot/widgets/namedqueries.py index 9791d5a3..6531efbe 100644 --- a/alot/widgets/namedqueries.py +++ b/alot/widgets/namedqueries.py @@ -12,8 +12,8 @@ class QuerylineWidget(urwid.Columns): def __init__(self, key, value, count, count_unread): self.query = key - count_widget = urwid.Text('{0:>7} {1:7}'.\ - format(count, '({0})'.format(count_unread))) + count_widget = urwid.Text('{0:>7} {1:7}'. + format(count, '({0})'.format(count_unread))) key_widget = urwid.Text(key) value_widget = urwid.Text(value) |