[all] More pylint fixes

see #23
This commit is contained in:
Tobi-wan Kenobi 2016-12-09 16:33:29 +01:00
parent 4baf63f88c
commit fa30b9505b
4 changed files with 10 additions and 2 deletions

View file

@ -19,6 +19,7 @@ class Widget(object):
self.module = module.name
def state(self):
"""Return the widget's state"""
return "state-default"
def full_text(self):

View file

@ -17,6 +17,9 @@ class Theme(object):
def __init__(self, name):
self._init(self.load(name))
self._widget = None
self._cycle_idx = 0
self._cycle = {}
self._prevbg = None
def _init(self, data):
"""Initialize theme from data structure"""
@ -67,9 +70,11 @@ class Theme(object):
return self._get(widget, "separator", None)
def separator_fg(self, widget):
"""Return the separator's foreground/text color"""
return self.bg(widget)
def separator_bg(self, widget):
"""Return the separator's background color"""
return self._prevbg
def separator_block_width(self, widget):