2016-09-02 15:37:36 -04:00
|
|
|
#!/bin/python
|
|
|
|
import time
|
|
|
|
from utils import debug
|
|
|
|
|
|
|
|
class screenManager():
|
|
|
|
def __init__(self):
|
|
|
|
pass
|
|
|
|
def initialize(self, environment):
|
|
|
|
return environment
|
|
|
|
def shutdown(self, environment):
|
|
|
|
return environment
|
|
|
|
def update(self, environment):
|
|
|
|
environment['generalInformation']['suspend'] = self.isSuspendingScreen(environment)
|
|
|
|
if not environment['generalInformation']['suspend']:
|
|
|
|
environment = environment['runtime']['screenDriver'].update(environment)
|
|
|
|
return environment
|
|
|
|
|
|
|
|
def isSuspendingScreen(self, environment):
|
2016-09-02 16:13:33 -04:00
|
|
|
return environment['runtime']['screenDriver'].getCurrScreen() in \
|
2016-09-02 15:37:36 -04:00
|
|
|
environment['runtime']['settingsManager'].getSetting(environment,'screen', 'suspendingScreen').split(',')
|
|
|
|
|