1 from components import *
5 screen["clock"] = Clock()
7 class Screen(dict, HTMLSkin, GUISkin):
11 class testDialog(Screen):
12 def testDialogClick(self):
13 print "test dialog clicked!"
14 self["title"].setText("bla")
17 HTMLSkin.__init__(self, ("title", "okbutton"))
19 b.onClick = [ self.testDialogClick ]
21 self["title"] = Header("Test Dialog - press ok to leave!")
23 # a clock display dialog
24 class clockDisplay(Screen):
26 print "clockDisplay close"
28 def __init__(self, clock):
29 HTMLSkin.__init__(self, ("title", "theClock", "okbutton"))
30 self["theClock"] = clock
32 b.onClick = [ self.okbutton ]
34 self["title"] = Header("clock dialog: here you see the current uhrzeit!")
39 "testDialog": testDialog,
40 "clockDisplay": clockDisplay }