git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
print a warning for now that the skin misses some elements
[enigma2.git]
/
lib
/
python
/
Components
/
GUIComponent.py
diff --git
a/lib/python/Components/GUIComponent.py
b/lib/python/Components/GUIComponent.py
index 414613066f9072c07d30ba1f74f5e8f644ae3b00..1f4c1e4f5fcf8da13454689c14113ddcb946e944 100644
(file)
--- a/
lib/python/Components/GUIComponent.py
+++ b/
lib/python/Components/GUIComponent.py
@@
-8,6
+8,7
@@
class GUIComponent(object):
def __init__(self):
self.instance = None
self.visible = 1
def __init__(self):
self.instance = None
self.visible = 1
+ self.skinAttributes = None
def execBegin(self):
pass
def execBegin(self):
pass
@@
-28,6
+29,11
@@
class GUIComponent(object):
def applySkin(self, desktop):
if not self.visible:
self.instance.hide()
def applySkin(self, desktop):
if not self.visible:
self.instance.hide()
+
+ if self.skinAttributes is None:
+ print "warning, skin is missing some elements."
+ return
+
skin.applyAllAttributes(self.instance, desktop, self.skinAttributes)
def move(self, x, y):
skin.applyAllAttributes(self.instance, desktop, self.skinAttributes)
def move(self, x, y):