Update view.py

This commit is contained in:
Jeroen Oudshoorn
2024-01-05 22:08:25 +01:00
parent 40aadc93cc
commit 4525d94faf

View File

@ -24,18 +24,10 @@ ROOT = None
class View(object): class View(object):
def __init__(self, config, impl, state=None): def __init__(self, config, impl, state=None):
global ROOT global ROOT
global WHITE
global BLACK
# setup faces from the configuration in case the user customized them # setup faces from the configuration in case the user customized them
faces.load_from_config(config['ui']['faces']) faces.load_from_config(config['ui']['faces'])
self._invert = config['ui']['invert']
if self._invert:
WHITE = 0x00
BLACK = 0xFF
self._agent = None self._agent = None
self._render_cbs = [] self._render_cbs = []
self._config = config self._config = config