1 from components import *
6 screen["clock"] = Clock()
8 class Screen(dict, HTMLSkin, GUISkin):
15 class testDialog(Screen):
16 def testDialogClick(self):
18 self["title"].setText("Hihi - no, this doesn't work!")
20 self["title"].setText("You tried it %d times without success now!" % self.tries )
25 GUISkin.__init__(self)
27 b.onClick = [ self.testDialogClick ]
29 self["title"] = Header("Test Dialog - press ok to leave!")
30 self["menu"] = MenuList()
34 # a clock display dialog
35 class clockDisplay(Screen):
37 print "clockDisplay close"
41 def __init__(self, clock):
42 GUISkin.__init__(self)
43 self["theClock"] = clock
45 b.onClick = [ self.okbutton ]
47 self["title"] = Header("clock dialog: here you see the current uhrzeit!")
52 "testDialog": testDialog,
53 "clockDisplay": clockDisplay }