aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/GUIComponent.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-07-08 16:41:35 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-07-08 16:41:35 +0000
commit98c4b5bb004e9297bffa8e1c3572572741fda933 (patch)
treefcd68e1dc4f97d0778348ae54e637368a80186ae /lib/python/Components/GUIComponent.py
parentdb493da3936b21410730a1c299b4c6937d56ca4e (diff)
downloadenigma2-98c4b5bb004e9297bffa8e1c3572572741fda933.tar.gz
enigma2-98c4b5bb004e9297bffa8e1c3572572741fda933.zip
- skins are now loaded first and applied later
- this allows use skin information to build special eWidgets, depending on skin - add "applet"-feature: code which is executed from skin - example: centering of messagebox
Diffstat (limited to 'lib/python/Components/GUIComponent.py')
-rw-r--r--lib/python/Components/GUIComponent.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/python/Components/GUIComponent.py b/lib/python/Components/GUIComponent.py
index bcd99d24..fee9341c 100644
--- a/lib/python/Components/GUIComponent.py
+++ b/lib/python/Components/GUIComponent.py
@@ -1,12 +1,17 @@
+import skin
+
class GUIComponent:
""" GUI component """
-
+
def __init__(self):
pass
-
+
def execBegin(self):
pass
def execEnd(self):
pass
-
+
+ # this works only with normal widgets - if you don't have self.instance, override this.
+ def applySkin(self, desktop):
+ skin.applyAllAttributes(self.instance, desktop, self.skinAttributes)