From: Guido van Rossum Date: Wed, 13 Jan 1993 12:45:41 +0000 (+0000) Subject: Close the window when receiving a close request; turn time into int. X-Git-Tag: v0.9.9~148 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7b741767621f57aa068186cd03733d166858fe1d;p=thirdparty%2FPython%2Fcpython.git Close the window when receiving a close request; turn time into int. --- diff --git a/Demo/stdwin/clock.py b/Demo/stdwin/clock.py index 0f7d6a960252..975154a5e840 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()