1 from components import *
6 screen["clock"] = Clock()
8 class Screen(dict, HTMLSkin, GUISkin):
11 # never call this directly - it will be called from the session!
15 def close(self, retval=None):
19 class testDialog(Screen):
20 def testDialogClick(self):
21 selection = self["menu"].getCurrent()
26 self["title"].setText("you selected the main menu!");
30 self["title"].setText("EMUs ARE ILLEGAL AND NOT SUPPORTED!");
32 def goTimeshift(self):
34 self["title"].setText("JUST PRESS THE YELLOW BUTTON!");
38 self["title"].setText("HDTV GREEN FLASHES: ENABLED");
41 GUISkin.__init__(self)
43 b.onClick = [ self.testDialogClick ]
45 self["title"] = Header("Test Dialog - press ok to leave!")
46 self["menu"] = MenuList(
48 ("MAIN MENU", self.goMain),
49 ("EMU SETUP", self.goEmu),
50 ("TIMESHIFT SETUP", self.goTimeshift),
51 ("HDTV PIP CONFIG", self.goHDTV)
55 class MainMenu(Screen):
57 GUISkin.__init__(self)
59 self["ok"] = Button("ok")
60 self["ok"].onClick = [ self.close ]
63 # a clock display dialog
64 class clockDisplay(Screen):
66 print "clockDisplay close"
70 def __init__(self, clock):
71 GUISkin.__init__(self)
72 self["theClock"] = clock
74 b.onClick = [ self.okbutton ]
76 self["title"] = Header("clock dialog: here you see the current uhrzeit!")
81 "testDialog": testDialog,
82 "clockDisplay": clockDisplay }