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!"
18 self["title"].setText("bla")
21 HTMLSkin.__init__(self, ("title", "okbutton"))
23 b.onClick = [ self.testDialogClick ]
25 self["title"] = Header("Test Dialog - press ok to leave!")
27 # a clock display dialog
28 class clockDisplay(Screen):
30 print "clockDisplay close"
34 def __init__(self, clock):
35 GUISkin.__init__(self)
36 self["theClock"] = clock
38 b.onClick = [ self.okbutton ]
40 self["title"] = Header("clock dialog: here you see the current uhrzeit!")
45 "testDialog": testDialog,
46 "clockDisplay": clockDisplay }