some preparements

This commit is contained in:
chrys 2016-07-07 19:56:46 +02:00
parent a0c936d1e9
commit f7fa100173
2 changed files with 11 additions and 0 deletions

View File

@ -23,3 +23,7 @@ runtime = {
'soundDriverString': '', 'soundDriverString': '',
'soundDriver': None, 'soundDriver': None,
} }
settings = {
}

View File

@ -18,6 +18,11 @@ from screen import linux as lx
class fenrir(): class fenrir():
def __init__(self): def __init__(self):
self.runtime = environment.runtime self.runtime = environment.runtime
self.settings = environment.settings
self.bindings = {}
self.autospeak = []
self.soundIcons = {}
self.runtime['speechDriverString'] = 'speechd' self.runtime['speechDriverString'] = 'speechd'
self.runtime['speechDriver'] = sd.speech() self.runtime['speechDriver'] = sd.speech()
self.runtime['screenDriverString'] = 'linux' self.runtime['screenDriverString'] = 'linux'
@ -26,6 +31,8 @@ class fenrir():
def proceed(self): def proceed(self):
while(self.runtime['running']): while(self.runtime['running']):
self.runtime = self.runtime['screenDriver'].analyzeScreen(self.runtime) self.runtime = self.runtime['screenDriver'].analyzeScreen(self.runtime)
def shutdown(self):
pass
app = fenrir() app = fenrir()
app.proceed() app.proceed()