summaryrefslogtreecommitdiff
path: root/alot/widgets
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2019-08-11 11:18:58 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2019-08-11 11:39:21 +0100
commit9b43a27894a029f7be31f44e27e03683c5857dd2 (patch)
treecab0b1f2564e09dfc3f94e39b2d1cc79c995f2d9 /alot/widgets
parent6df1ac86b761d04464ecc611a3463968f608af2d (diff)
pep8 fixes in alot/widgets
Diffstat (limited to 'alot/widgets')
-rw-r--r--alot/widgets/globals.py4
-rw-r--r--alot/widgets/namedqueries.py4
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)