remove evdev depency from settingsManager

This commit is contained in:
chrys
2016-09-17 17:45:55 +02:00
parent 11289c09cd
commit 515e3b0f7b
5 changed files with 15 additions and 17 deletions

View File

@ -19,7 +19,6 @@ class screenManager():
return environment
def update(self, environment):
print(self.isSuspendingScreen(environment))
if not self.isSuspendingScreen(environment):
environment = environment['runtime']['screenDriver'].update(environment)
environment['screenData']['lastScreenUpdate'] = time.time()

View File

@ -1,5 +1,5 @@
#!/bin/python
import evdev
import importlib.util
import os
from configparser import ConfigParser
@ -30,7 +30,7 @@ class settingsManager():
if line.count("=") != 1:
continue
sepLine = line.split('=')
commandName = sepLine[1]
commandName = sepLine[1].upper()
sepLine[0] = sepLine[0].replace(" ","")
sepLine[0] = sepLine[0].replace("'","")
sepLine[0] = sepLine[0].replace('"',"")
@ -49,13 +49,6 @@ class settingsManager():
environment['bindings'][str(shortcut)] = commandName
kbConfig.close()
def getCodeForKeyID(self, keyID):
try:
return evdev.ecodes.ecodes[keyID.upper()]
except:
return 0
def loadSoundIcons(self, environment, soundIconPath):
siConfig = open(soundIconPath + '/soundicons.conf',"r")
while(True):