All pastes #87215 Raw Edit

Stuff

public text v1 · immutable
·published 2006-07-13 19:16 UTC
rendered paste body
--- lib/python/Screens/Screen.py        25 Jun 2006 21:23:19 -0000      1.17
+++ lib/python/Screens/Screen.py        13 Jul 2006 19:15:36 -0000
@@ -1,5 +1,6 @@
 from Components.HTMLSkin import *
 from Components.GUISkin import *
+from Components.Sources.Source import Source

 import sys

@@ -99,7 +100,7 @@
                for x in self.onShow:
                        x()
                for val in self.values() + self.renderer:
-                       if isinstance(val, GUIComponent):
+                       if isinstance(val, GUIComponent) or isinstance(val, Source):
                                val.onShow()

        def hide(self):
@@ -110,5 +111,5 @@
                for x in self.onHide:
                        x()
                for val in self.values() + self.renderer:
-                       if isinstance(val, GUIComponent):
+                       if isinstance(val, GUIComponent) or isinstance(val, Source):
                                val.onHide()