git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update pt language
[enigma2.git]
/
mytest.py
diff --git
a/mytest.py
b/mytest.py
index e674a29515e194857ff81ae2e40d4f967551fcb7..8d8036b9cc733348bb04672cc838c938d5d8f416 100644
(file)
--- a/
mytest.py
+++ b/
mytest.py
@@
-155,11
+155,11
@@
class Session:
if callback is not None:
callback(*retval)
if callback is not None:
callback(*retval)
- def execBegin(self, first=True):
+ def execBegin(self, first=True
, do_show = True
):
assert not self.in_exec
self.in_exec = True
c = self.current_dialog
assert not self.in_exec
self.in_exec = True
c = self.current_dialog
-
+
# when this is an execbegin after a execend of a "higher" dialog,
# popSummary already did the right thing.
if first:
# when this is an execbegin after a execend of a "higher" dialog,
# popSummary already did the right thing.
if first:
@@
-172,9
+172,9
@@
class Session:
c.execBegin()
# when execBegin opened a new dialog, don't bother showing the old one.
c.execBegin()
# when execBegin opened a new dialog, don't bother showing the old one.
- if c == self.current_dialog:
+ if c == self.current_dialog
and do_show
:
c.show()
c.show()
-
+
def execEnd(self, last=True):
assert self.in_exec
self.in_exec = False
def execEnd(self, last=True):
assert self.in_exec
self.in_exec = False
@@
-246,13
+246,13
@@
class Session:
def pushCurrent(self):
if self.current_dialog is not None:
def pushCurrent(self):
if self.current_dialog is not None:
- self.dialog_stack.append(
self.current_dialog
)
+ self.dialog_stack.append(
(self.current_dialog, self.current_dialog.shown)
)
self.execEnd(last=False)
self.execEnd(last=False)
-
+
def popCurrent(self):
if len(self.dialog_stack):
def popCurrent(self):
if len(self.dialog_stack):
-
self.current_dialog
= self.dialog_stack.pop()
- self.execBegin(first=False)
+
(self.current_dialog, do_show)
= self.dialog_stack.pop()
+ self.execBegin(first=False
, do_show=do_show
)
else:
self.current_dialog = None
else:
self.current_dialog = None
@@
-451,6
+451,8
@@
class AutoScartControl:
else:
self.scartDialog.switchToTV()
else:
self.scartDialog.switchToTV()
+from enigma import eDVBCIInterfaces
+
def runScreenTest():
plugins.readPluginList(resolveFilename(SCOPE_PLUGINS))
def runScreenTest():
plugins.readPluginList(resolveFilename(SCOPE_PLUGINS))
@@
-467,6
+469,12
@@
def runScreenTest():
ePythonConfigQuery.setQueryFunc(configfile.getResolvedKey)
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)
def runNextScreen(session, screensToRun, *result):
if result:
quitMainloop(*result)