- split of Components into different files
[enigma2.git] / screens.py
index 50a9ddace0f15c1b59b62121fe40b21a75246f99..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,54 +0,0 @@
-from components import *
-import sys
-
-# some screens
-def doGlobal(screen):
-       screen["clock"] = Clock()
-
-class Screen(dict, HTMLSkin, GUISkin):
-       """ bla """
-       
-       def close(self):
-               GUISkin.close(self)
-       
-# a test dialog
-class testDialog(Screen):
-       def testDialogClick(self):
-               if self.tries == 0:
-                       self["title"].setText("Hihi - no, this doesn't work!")
-               else:
-                       self["title"].setText("You tried it %d times without success now!" % self.tries )
-
-               self.tries += 1
-
-       def __init__(self):
-               GUISkin.__init__(self)
-               b = Button("ok")
-               b.onClick = [ self.testDialogClick ]
-               self["okbutton"] = b
-               self["title"] = Header("Test Dialog - press ok to leave!")
-               self["menu"] = MenuList()
-               
-               self.tries = 0
-
-# a clock display dialog
-class clockDisplay(Screen):
-       def okbutton(self):
-               print "clockDisplay close"
-               
-               self.session.close()
-       
-       def __init__(self, clock):
-               GUISkin.__init__(self)
-               self["theClock"] = clock
-               b = Button("bye")
-               b.onClick = [ self.okbutton ]
-               self["okbutton"] = b
-               self["title"] = Header("clock dialog: here you see the current uhrzeit!")
-
-# defined screens
-screens = {
-       "global": doGlobal,
-       "testDialog": testDialog,
-       "clockDisplay": clockDisplay }
-