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!")
33 # a clock display dialog
34 class clockDisplay(Screen):
36 print "clockDisplay close"
40 def __init__(self, clock):
41 GUISkin.__init__(self)
42 self["theClock"] = clock
44 b.onClick = [ self.okbutton ]
46 self["title"] = Header("clock dialog: here you see the current uhrzeit!")
51 "testDialog": testDialog,
52 "clockDisplay": clockDisplay }