From a4da9cccc2575c4bf299bde9594dad3e049ddf6a Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Thu, 5 May 2005 23:38:38 +0000 Subject: - split 2 (Screens) --- lib/python/Screens/ClockDisplay.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/python/Screens/ClockDisplay.py (limited to 'lib/python/Screens/ClockDisplay.py') diff --git a/lib/python/Screens/ClockDisplay.py b/lib/python/Screens/ClockDisplay.py new file mode 100644 index 00000000..8c1e2924 --- /dev/null +++ b/lib/python/Screens/ClockDisplay.py @@ -0,0 +1,13 @@ +# a clock display dialog +class ClockDisplay(Screen): + def okbutton(self): + self.session.close() + + def __init__(self, session, clock): + Screen.__init__(self, session) + self["theClock"] = clock + b = Button("bye") + b.onClick = [ self.okbutton ] + self["okbutton"] = b + self["title"] = Header("clock dialog: here you see the current uhrzeit!") + -- cgit v1.2.3