from enigma import *
+from tools import *
import sys
import time
from screens import *
from skin import applyGUIskin
-
-def CONNECT(slot, fnc):
- slot.get().append(fnc)
-
-def DISCONNECT(slot, fnc):
- slot.get().remove(fnc)
-
# A screen is a function which instanciates all components of a screen into a temporary component.
# Thus, the global stuff is a screen, too.
# In a screen, components can either be instanciated from the class-tree, cloned (copied) or
def keyEvent(self, code):
# print "code " + str(code)
if code == 32:
- self.currentDialog.data["okbutton"]["instance"].push()
+ self.currentDialog["okbutton"].instance.push()
if code == 33:
- self.currentDialog.data["channelSwitcher"]["instance"].push()
+ self.currentDialog["channelSwitcher"].instance.push()
if code >= 0x30 and code <= 0x39:
try:
- self.currentDialog.data["menu"]["instance"].moveSelection(code - 0x31)
+ self.currentDialog["menu"].instance.moveSelection(code - 0x31)
except:
- self.currentDialog.data["list"]["instance"].moveSelection(code - 0x31)
+ self.currentDialog["list"].instance.moveSelection(code - 0x31)
def close(self):
self.delayTimer.start(0, 1)
session = Session()
session.desktop = getDesktop()
+ session.nav = pNavigation()
+
session.open(infoBar())
CONNECT(keyPressedSignal(), session.keyEvent)