fixed refcount of eListboxPythonStringContent
[enigma2.git] / mytest.py
index b3d1701..e4a722a 100644 (file)
--- a/mytest.py
+++ b/mytest.py
@@ -37,11 +37,11 @@ screens["global"](components)
 # test our screens
 components["$001"] = screens["testDialog"]()
 
-print "*** classes:"
-dump(screens)
-
-print "*** instances:"
-dump(components)
+#print "*** classes:"
+#dump(screens)
+#
+#print "*** instances:"
+#dump(components)
 
 # display
 
@@ -100,7 +100,12 @@ class Session:
                        self.currentWindow = None
 
        def keyEvent(self, code):
-               self.currentDialog.data["okbutton"]["instance"].push()
+#              print "code " + str(code)
+               if code == 32:
+                       self.currentDialog.data["okbutton"]["instance"].push()
+               
+               if code >= 0x30 and code <= 0x39:
+                       self.currentDialog.data["menu"]["instance"].moveSelection(code - 0x31)
 
        def close(self):
                self.delayTimer.start(0, 1)