aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/ClockDisplay.py
blob: f4fa1ffeb7b00136196989fbe4118102ff77818d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from Screen import Screen

# 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!")