Docstrings
This commit is contained in:
parent
9dc7041997
commit
60be03126d
@ -21,6 +21,10 @@ class Thunderbird(Backend):
|
||||
"""
|
||||
This class listens for dbus signals emitted by
|
||||
the dbus-sender extension for thunderbird.
|
||||
|
||||
Requires
|
||||
* python-dbus
|
||||
* python-gobject2
|
||||
"""
|
||||
|
||||
unread = set()
|
||||
|
@ -19,7 +19,8 @@ class ModsDeChecker(IntervalModule):
|
||||
|
||||
settings = (
|
||||
("format", """Use {unread} as the formatter for number of unread posts"""),
|
||||
"color", "offset", "username", "password"
|
||||
("offset", """subtract number of posts before output"""),
|
||||
"color", "username", "password"
|
||||
)
|
||||
required = ("username", "password")
|
||||
|
||||
|
@ -5,17 +5,16 @@ from i3pystatus import IntervalModule
|
||||
class Regex(IntervalModule):
|
||||
"""
|
||||
Simple regex file watcher
|
||||
|
||||
Settings:
|
||||
* flags — Python.re flags
|
||||
* regex — regular expression
|
||||
* file — file to search for regex matches
|
||||
* format — new-style format string used for output, default is "{0}"
|
||||
"""
|
||||
|
||||
flags = 0
|
||||
format = "{0}"
|
||||
settings = ("format", "regex", "file")
|
||||
settings = (
|
||||
("format", "format string used for output"),
|
||||
"regex",
|
||||
("file", "file to search for regex matches"),
|
||||
("flags", "Python.re flags"),
|
||||
)
|
||||
required = ("regex", "file")
|
||||
|
||||
def init(self):
|
||||
|
Loading…
Reference in New Issue
Block a user