From 7b741767621f57aa068186cd03733d166858fe1d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 13 Jan 1993 12:45:41 +0000 Subject: Close the window when receiving a close request; turn time into int. --- Demo/stdwin/clock.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Demo/stdwin/clock.py b/Demo/stdwin/clock.py index 0f7d6a9..975154a 100755 --- a/Demo/stdwin/clock.py +++ b/Demo/stdwin/clock.py @@ -68,6 +68,7 @@ def cdispatch(event): setdimensions(win) elif type == WE_CLOSE: mainloop.unregister(win) + win.close() def setdimensions(win): width, height = win.getwinsize() @@ -198,6 +199,6 @@ def dd(n): return '0'*(2-len(s)) + s def getlocaltime(): - return time.time() - TZDIFF + return int(time.time() - TZDIFF) main() -- cgit v0.12