mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Update view.py
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user