diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2008-04-23 11:32:18 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2008-04-23 11:32:18 +0000 |
| commit | fe0534f76b59b814caca3648933c45d3add31889 (patch) | |
| tree | a05bb683ae8dfb6c73f48be5940590b9aa6e923d /mytest.py | |
| parent | f80cd44acb9f06d348f3b0fb09036d7db7e83b66 (diff) | |
| download | enigma2-fe0534f76b59b814caca3648933c45d3add31889.tar.gz enigma2-fe0534f76b59b814caca3648933c45d3add31889.zip | |
prepare for skin updating and scaling
Diffstat (limited to 'mytest.py')
| -rw-r--r-- | mytest.py | 26 |
1 files changed, 3 insertions, 23 deletions
@@ -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 |
