summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-11-28 16:21:00 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2011-11-28 16:21:00 +0000
commite9abe43315873c8428f9d5f9fee8407281f73967 (patch)
tree953b7cbbb5740bbe6090136b4a22d28a5a021f59 /alot
parent6607e8656f4e3d445458784601597912f5c0f7eb (diff)
docs: UI
Diffstat (limited to 'alot')
-rw-r--r--alot/ui.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/alot/ui.py b/alot/ui.py
index 228c1728..b336e1ef 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -75,6 +75,15 @@ class UI(object):
"""account manager (:class:`~alot.account.AccountManager`)"""
def __init__(self, dbman, log, accountman, initialcmd, colourmode):
+ """
+ :param dbman: :class:`~alot.db.DBManager`
+ :param log: :class:`logging.Logger`
+ :param accountman: :class:`~alot.account.AccountManager`
+ :param initialcmd: commandline applied after setting up interface
+ :type initialcmd: str
+ :param colourmode: determines which theme to chose
+ :type colourmode: int in [1,16,256]
+ """
self.dbman = dbman
self.dbman.ui = self # register ui with dbman
self.logger = log
@@ -137,7 +146,7 @@ class UI(object):
:type tab: int
:param history: history to be used for up/down keys
:type history: list of str
- :returns: a :meth:`twisted.defer.Deferred`
+ :returns: a :class:`twisted.defer.Deferred`
"""
d = defer.Deferred() # create return deferred
oldroot = self.inputwrap.get_root()