diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-10-12 12:40:40 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-10-12 12:40:40 +0000 |
| commit | d186d7e6752018badb476ab0d4b87aa9dcea8aac (patch) | |
| tree | 3476c0c276915e67b25773b56af82f9fcd9041b7 /lib/python/Components/GUIComponent.py | |
| parent | 071b99f578486ea21e3323e6f7190693f11fc35a (diff) | |
| download | enigma2-d186d7e6752018badb476ab0d4b87aa9dcea8aac.tar.gz enigma2-d186d7e6752018badb476ab0d4b87aa9dcea8aac.zip | |
fix non working rotor turning pixmap
Diffstat (limited to 'lib/python/Components/GUIComponent.py')
| -rw-r--r-- | lib/python/Components/GUIComponent.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/python/Components/GUIComponent.py b/lib/python/Components/GUIComponent.py index c900796d..deb8b34a 100644 --- a/lib/python/Components/GUIComponent.py +++ b/lib/python/Components/GUIComponent.py @@ -7,6 +7,8 @@ class GUIComponent(object): def __init__(self): self.instance = None + self.onVisibilityChange = [ ] + self.__visible = 0 self.visible = 1 self.skinAttributes = None @@ -50,14 +52,22 @@ class GUIComponent(object): self.instance.setZPosition(z) def show(self): + old = self.__visible self.__visible = 1 if self.instance is not None: self.instance.show() + if old != self.__visible: + for fnc in self.onVisibilityChange: + fnc(True) def hide(self): + old = self.__visible self.__visible = 0 if self.instance is not None: self.instance.hide() + if old != self.__visible: + for fnc in self.onVisibilityChange: + fnc(False) def getVisible(self): return self.__visible |
