1 from components import *
6 screen["clock"] = Clock()
8 class Screen(dict, HTMLSkin, GUISkin):
15 class testDialog(Screen):
16 def testDialogClick(self):
17 self["title"].setText(self["menu"].getCurrent())
22 GUISkin.__init__(self)
24 b.onClick = [ self.testDialogClick ]
26 self["title"] = Header("Test Dialog - press ok to leave!")
27 self["menu"] = MenuList()
31 # a clock display dialog
32 class clockDisplay(Screen):
34 print "clockDisplay close"
38 def __init__(self, clock):
39 GUISkin.__init__(self)
40 self["theClock"] = clock
42 b.onClick = [ self.okbutton ]
44 self["title"] = Header("clock dialog: here you see the current uhrzeit!")
49 "testDialog": testDialog,
50 "clockDisplay": clockDisplay }