from components import *
+import sys
# some screens
def doGlobal(screen):
class Screen(dict, HTMLSkin, GUISkin):
""" bla """
+ def close(self):
+ GUISkin.close(self)
+
# a test dialog
class testDialog(Screen):
def testDialogClick(self):
class clockDisplay(Screen):
def okbutton(self):
print "clockDisplay close"
+
+ self.session.close()
def __init__(self, clock):
- HTMLSkin.__init__(self, ("title", "theClock", "okbutton"))
+ GUISkin.__init__(self)
self["theClock"] = clock
b = Button("bye")
b.onClick = [ self.okbutton ]