diff options
| author | Felix Domke <tmbinc@2mac.waldobjekt.org> | 2009-06-15 01:38:16 +0200 |
|---|---|---|
| committer | Felix Domke <tmbinc@2mac.waldobjekt.org> | 2009-06-15 01:38:16 +0200 |
| commit | c68943c97eeb0107f724ec96aae311e319c750a9 (patch) | |
| tree | 25b5cc824c97877f8c9c324de83addc32e0cf573 /lib/python/Components | |
| parent | 41abf51328852c031d9956dcfa5a0361f4284dc9 (diff) | |
| download | enigma2-c68943c97eeb0107f724ec96aae311e319c750a9.tar.gz enigma2-c68943c97eeb0107f724ec96aae311e319c750a9.zip | |
allow position="center,center" to center screen client area on screen
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/GUISkin.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/python/Components/GUISkin.py b/lib/python/Components/GUISkin.py index 9eb4a80b..1bd27297 100644 --- a/lib/python/Components/GUISkin.py +++ b/lib/python/Components/GUISkin.py @@ -85,6 +85,9 @@ class GUISkin: if not self.instance: from enigma import eWindow self.instance = eWindow(self.desktop, z) + + # we need to make sure that certain attributes come last + self.skinAttributes.sort(key=lambda a: {"position": 1}.get(a[0], 0)) self.title = title applyAllAttributes(self.instance, self.desktop, self.skinAttributes, self.scale) self.createGUIScreen(self.instance, self.desktop) |
