1 from components import *
6 screen["clock"] = Clock()
8 class Screen(dict, HTMLSkin, GUISkin):
15 class testDialog(Screen):
16 def testDialogClick(self):
17 print "test dialog clicked!"
19 self["title"].setText("Hihi - no, this doesn't work!")
21 self["title"].setText("You tried it %d times without success now!" % self.tries )
26 GUISkin.__init__(self)
28 b.onClick = [ self.testDialogClick ]
30 self["title"] = Header("Test Dialog - press ok to leave!")
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 }