- add "getCurrent" to service listbox
[enigma2.git] / mytest.py
index 4712ba116a6389572563dea867dd060b59408bf3..388fcdac56a6006be4762222d10f335af41cc18d 100644 (file)
--- a/mytest.py
+++ b/mytest.py
@@ -1,4 +1,5 @@
 from enigma import *
 from enigma import *
+from tools import *
 
 import sys
 import time
 
 import sys
 import time
@@ -6,13 +7,6 @@ import time
 from screens import *
 from skin import applyGUIskin
 
 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
 # 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
@@ -119,6 +113,8 @@ def runScreenTest():
        session = Session()
        session.desktop = getDesktop()
        
        session = Session()
        session.desktop = getDesktop()
        
+       session.nav = pNavigation()
+       
        session.open(infoBar())
 
        CONNECT(keyPressedSignal(), session.keyEvent)
        session.open(infoBar())
 
        CONNECT(keyPressedSignal(), session.keyEvent)