Update view.py

This commit is contained in:
Jeroen Oudshoorn
2024-01-05 15:56:38 +01:00
parent 51d1e31912
commit a486f1bc75

View File

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