X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/4b131e5355ab67658462b2aa4c5deca0d9188827..d6ed3400b2cdfd156aa9f6504079aeab53db1f69:/lib/python/Components/ActionMap.py diff --git a/lib/python/Components/ActionMap.py b/lib/python/Components/ActionMap.py index d2e908e6..b65d6ebc 100644 --- a/lib/python/Components/ActionMap.py +++ b/lib/python/Components/ActionMap.py @@ -1,16 +1,15 @@ -from enigma import * +from enigma import eActionMap class ActionMap: def __init__(self, contexts = [ ], actions = { }, prio=0): self.actions = actions self.contexts = contexts self.prio = prio - self.p = eActionMapPtr() + self.p = eActionMap.getInstance() self.bound = False self.exec_active = False self.enabled = True - eActionMap.getInstance(self.p) - + def setEnabled(self, enabled): self.enabled = enabled self.checkBind()