diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2014-06-30 20:09:24 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2014-06-30 20:09:24 (GMT) |
commit | f5ac57dc05818e4fe2ff5118680fe136937d768e (patch) | |
tree | 28c5be50f2bc8a0cdc6d77a61bf0bb079461c642 /Lib/turtledemo/clock.py | |
parent | 98b6391fd4b27485b17c068d6f85a00d3f7c5ddc (diff) | |
download | cpython-f5ac57dc05818e4fe2ff5118680fe136937d768e.zip cpython-f5ac57dc05818e4fe2ff5118680fe136937d768e.tar.gz cpython-f5ac57dc05818e4fe2ff5118680fe136937d768e.tar.bz2 |
Issue #21882: In turtle demos, remove module scope gui and sys calls by
either deleting or moving to the module's main function.
Diffstat (limited to 'Lib/turtledemo/clock.py')
-rwxr-xr-x | Lib/turtledemo/clock.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/turtledemo/clock.py b/Lib/turtledemo/clock.py index b7a2f36..62c8851 100755 --- a/Lib/turtledemo/clock.py +++ b/Lib/turtledemo/clock.py @@ -11,11 +11,8 @@ and time ------------------------------------ """ from turtle import * -from turtle import Terminator # not in __all__ from datetime import datetime -mode("logo") - def jump(distanz, winkel=0): penup() right(winkel) @@ -43,7 +40,6 @@ def make_hand_shape(name, laenge, spitze): hand_form = get_poly() register_shape(name, hand_form) - def clockface(radius): reset() pensize(7) @@ -84,7 +80,6 @@ def setup(): writer.pu() writer.bk(85) - def wochentag(t): wochentag = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"] @@ -131,6 +126,7 @@ def main(): return "EVENTLOOP" if __name__ == "__main__": + mode("logo") msg = main() print(msg) mainloop() |