consider screens which haven't finished their initialization as shown. this fixes...
[enigma2.git] / mytest.py
index 098675b60ea423334cb083faf5e999a0d0b29d2e..452dd3d70abc66cb0a6318ce7c998eed71331648 100644 (file)
--- a/mytest.py
+++ b/mytest.py
@@ -173,8 +173,12 @@ class Session:
 
                # when execBegin opened a new dialog, don't bother showing the old one.
                if c == self.current_dialog and do_show:
-                       c.show()
-               
+                       # this is the first show() for each screen.
+                       # screen.shown is already true, because that resembles the state 
+                       # ("not-yet-shown-but-will-be-shown") best, so c.show() would just do nothing.
+                       # show(force=True) will show in any case.
+                       c.show(force = True)
+
        def execEnd(self, last=True):
                assert self.in_exec
                self.in_exec = False
@@ -451,6 +455,8 @@ class AutoScartControl:
                        else:
                                self.scartDialog.switchToTV()
 
+from enigma import eDVBCIInterfaces
+
 def runScreenTest():
        plugins.readPluginList(resolveFilename(SCOPE_PLUGINS))
 
@@ -467,6 +473,12 @@ def runScreenTest():
 
        ePythonConfigQuery.setQueryFunc(configfile.getResolvedKey)
 
+#      eDVBCIInterfaces.getInstance().setDescrambleRules(0 # Slot Number
+#              ,(      ["1:0:1:24:4:85:C00000:0:0:0:"], #service_list
+#                      ["PREMIERE"], #provider_list,
+#                      [] #caid_list
+#              ));
+
        def runNextScreen(session, screensToRun, *result):
                if result:
                        quitMainloop(*result)