diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-05-05 23:38:38 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-05-05 23:38:38 +0000 |
| commit | a4da9cccc2575c4bf299bde9594dad3e049ddf6a (patch) | |
| tree | 3064290f3ab9cfebdcaba577dc98c610fcc78139 /lib/python/Screens/Screen.py | |
| parent | 81ae5bd362286a852f0851043bfccf1c754f3152 (diff) | |
| download | enigma2-a4da9cccc2575c4bf299bde9594dad3e049ddf6a.tar.gz enigma2-a4da9cccc2575c4bf299bde9594dad3e049ddf6a.zip | |
- split 2 (Screens)
Diffstat (limited to 'lib/python/Screens/Screen.py')
| -rw-r--r-- | lib/python/Screens/Screen.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/python/Screens/Screen.py b/lib/python/Screens/Screen.py new file mode 100644 index 00000000..ef9b2bb0 --- /dev/null +++ b/lib/python/Screens/Screen.py @@ -0,0 +1,37 @@ +from Components.HTMLSkin import * +from Components.GUISkin import * + +import sys + +class Screen(dict, HTMLSkin, GUISkin): + """ bla """ + + def __init__(self, session): + self.skinName = self.__class__.__name__ + self.session = session + GUISkin.__init__(self) + + def execBegin(self): +# assert self.session == None, "a screen can only exec one per time" +# self.session = session + for (name, val) in self.items(): + val.execBegin() + + def execEnd(self): + for (name, val) in self.items(): + val.execEnd() +# assert self.session != None, "execEnd on non-execing screen!" +# self.session = None + + # never call this directly - it will be called from the session! + def doClose(self): + GUISkin.close(self) + + del self.session + for (name, val) in self.items(): + print "%s -> %d" % (name, sys.getrefcount(val)) + del self[name] + + def close(self, retval=None): + self.session.close() + |
