git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some cleanups
[enigma2.git]
/
lib
/
python
/
Screens
/
Screen.py
diff --git
a/lib/python/Screens/Screen.py
b/lib/python/Screens/Screen.py
index 5f1cf6d610193b848db2aba773613a11ff83ce87..b581e62baca7be4a7c026d28941b09f64d7263ef 100644
(file)
--- a/
lib/python/Screens/Screen.py
+++ b/
lib/python/Screens/Screen.py
@@
-1,10
+1,12
@@
from Components.HTMLSkin import *
from Components.GUISkin import *
from Components.HTMLSkin import *
from Components.GUISkin import *
+from Components.Sources.Source import Source
import sys
class Screen(dict, HTMLSkin, GUISkin):
import sys
class Screen(dict, HTMLSkin, GUISkin):
- """ bla """
+
+ ALLOW_SUSPEND = False
def __init__(self, session):
self.skinName = self.__class__.__name__
def __init__(self, session):
self.skinName = self.__class__.__name__
@@
-99,7
+101,7
@@
class Screen(dict, HTMLSkin, GUISkin):
for x in self.onShow:
x()
for val in self.values() + self.renderer:
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):
val.onShow()
def hide(self):
@@
-110,5
+112,8
@@
class Screen(dict, HTMLSkin, GUISkin):
for x in self.onHide:
x()
for val in self.values() + self.renderer:
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()
val.onHide()
+
+ def __repr__(self):
+ return str(type(self))