Improved web-ui labels, improved logging, improved support for testing

Switched from NotoSans-SemiCondensed to NotoSansUI-Regular
This commit is contained in:
Ace
2020-11-21 16:22:15 +01:00
parent 077392c2f9
commit afe84dc8e6
10 changed files with 18 additions and 29 deletions

View File

@@ -1,11 +1,6 @@
import abc
from inkycal.custom import *
# Set the root logger to level DEBUG to allow any inkycal module to use the
# logger for any level
logging.basicConfig(level = logging.DEBUG)
class inkycal_module(metaclass=abc.ABCMeta):
"""Generic base class for inykcal modules"""
@@ -28,7 +23,7 @@ class inkycal_module(metaclass=abc.ABCMeta):
self.fontsize = conf["fontsize"]
self.font = ImageFont.truetype(
fonts['NotoSans-SemiCondensed'], size = self.fontsize)
fonts['NotoSansUI-Regular'], size = self.fontsize)
def set(self, help=False, **kwargs):
"""Set attributes of class, e.g. class.set(key=value)