aboutsummaryrefslogtreecommitdiff
path: root/mytest.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2008-04-23 11:32:18 +0000
committerFelix Domke <tmbinc@elitedvb.net>2008-04-23 11:32:18 +0000
commitfe0534f76b59b814caca3648933c45d3add31889 (patch)
treea05bb683ae8dfb6c73f48be5940590b9aa6e923d /mytest.py
parentf80cd44acb9f06d348f3b0fb09036d7db7e83b66 (diff)
downloadenigma2-fe0534f76b59b814caca3648933c45d3add31889.tar.gz
enigma2-fe0534f76b59b814caca3648933c45d3add31889.zip
prepare for skin updating and scaling
Diffstat (limited to 'mytest.py')
-rw-r--r--mytest.py26
1 files changed, 3 insertions, 23 deletions
diff --git a/mytest.py b/mytest.py
index 2597f8d6..baa481c2 100644
--- a/mytest.py
+++ b/mytest.py
@@ -8,7 +8,7 @@ from Tools.Profile import profile, profile_final
profile("PYTHON_START")
from enigma import runMainloop, eDVBDB, eTimer, quitMainloop, eDVBVolumecontrol, \
- getDesktop, ePythonConfigQuery, eAVSwitch, eWindow, eServiceEvent
+ getDesktop, ePythonConfigQuery, eAVSwitch, eServiceEvent
from tools import *
profile("LANGUAGE")
@@ -99,14 +99,6 @@ def dump(dir, p = ""):
# display
-class OutputDevice:
- def create(self, screen): pass
-
-class GUIOutputDevice(OutputDevice):
- parent = None
- def create(self, comp, desktop):
- comp.createGUIScreen(self.parent, desktop)
-
profile("LOAD:ScreenGlobals")
from Screens.Globals import Globals
from Screens.SessionGlobals import SessionGlobals
@@ -249,20 +241,8 @@ class Session:
# create GUI view of this dialog
assert desktop is not None
- z = 0
- title = ""
- for (key, value) in dlg.skinAttributes:
- if key == "zPosition":
- z = int(value)
- elif key == "title":
- title = value
-
- dlg.instance = eWindow(desktop, z)
- dlg.title = title
- applyAllAttributes(dlg.instance, desktop, dlg.skinAttributes)
- gui = GUIOutputDevice()
- gui.parent = dlg.instance
- gui.create(dlg, desktop)
+ dlg.setDesktop(desktop)
+ dlg.applySkin()
return dlg