aboutsummaryrefslogtreecommitdiff
path: root/mytest.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2007-09-23 23:29:09 +0000
committerFelix Domke <tmbinc@elitedvb.net>2007-09-23 23:29:09 +0000
commita12f0f98d99109a64942abf1bb1f6e429c2fc7f5 (patch)
treeaae97daaf858cc545cbc9b64ba6b327bd1f22b8a /mytest.py
parentc62a259bfa8d576c05e7ac6bd1b978340f30135b (diff)
downloadenigma2-a12f0f98d99109a64942abf1bb1f6e429c2fc7f5.tar.gz
enigma2-a12f0f98d99109a64942abf1bb1f6e429c2fc7f5.zip
add concept of 'related screen', which can be used to get shared sources (like clock, current service, ...) from global,session-global,parent screen. replace 'fake' with 'session.VideoPicture' for pig usage.
Diffstat (limited to 'mytest.py')
-rw-r--r--mytest.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/mytest.py b/mytest.py
index 81c9f95f..3a5ec3ec 100644
--- a/mytest.py
+++ b/mytest.py
@@ -92,6 +92,12 @@ class GUIOutputDevice(OutputDevice):
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
@@ -133,6 +139,8 @@ class Session:
self.in_exec = False
+ self.screen = SessionGlobals(self)
+
for p in plugins.getPlugins(PluginDescriptor.WHERE_SESSIONSTART):
p(reason=0, session=self)