22 lines
832 B
Python
22 lines
832 B
Python
|
#!/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):
|
||
|
return environment['generalInformation']['suspend'] = environment['runtime']['screenDriver'].getCurrScreen() in \
|
||
|
environment['runtime']['settingsManager'].getSetting(environment,'screen', 'suspendingScreen').split(',')
|
||
|
|