git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
show service reference string in service info
[enigma2.git]
/
mytest.py
diff --git
a/mytest.py
b/mytest.py
index 969d345b943415792cb8fa7b11c54b3581f75ee9..3a5ec3ecf5a288c598cbeef097f56cdfe557e88c 100644
(file)
--- a/
mytest.py
+++ b/
mytest.py
@@
-31,12
+31,12
@@
eDVBDB.getInstance().reloadBouquets()
config.misc.radiopic = ConfigText(default = resolveFilename(SCOPE_SKIN_IMAGE)+"radio.mvi")
try:
config.misc.radiopic = ConfigText(default = resolveFilename(SCOPE_SKIN_IMAGE)+"radio.mvi")
try:
- import e2reactor
- e2reactor.install()
-
import twisted.python.runtime
twisted.python.runtime.platform.supportsThreads = lambda: False
import twisted.python.runtime
twisted.python.runtime.platform.supportsThreads = lambda: False
+ import e2reactor
+ e2reactor.install()
+
from twisted.internet import reactor
def runReactor():
from twisted.internet import reactor
def runReactor():
@@
-92,6
+92,12
@@
class GUIOutputDevice(OutputDevice):
def create(self, comp, desktop):
comp.createGUIScreen(self.parent, desktop)
def create(self, comp, desktop):
comp.createGUIScreen(self.parent, desktop)
+from Screens.Globals import Globals
+from Screens.SessionGlobals import SessionGlobals
+from Screens.Screen import Screen
+
+Screen.global_screen = Globals()
+
# Session.open:
# * push current active dialog ('current_dialog') onto stack
# * call execEnd for this dialog
# Session.open:
# * push current active dialog ('current_dialog') onto stack
# * call execEnd for this dialog
@@
-133,6
+139,8
@@
class Session:
self.in_exec = False
self.in_exec = False
+ self.screen = SessionGlobals(self)
+
for p in plugins.getPlugins(PluginDescriptor.WHERE_SESSIONSTART):
p(reason=0, session=self)
for p in plugins.getPlugins(PluginDescriptor.WHERE_SESSIONSTART):
p(reason=0, session=self)