aboutsummaryrefslogtreecommitdiff
path: root/mytest.py
diff options
context:
space:
mode:
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