mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #21882: In turtle demos, remove module scope gui and sys calls by
either deleting or moving to the module's main function.
This commit is contained in:
parent
98b6391fd4
commit
f5ac57dc05
7 changed files with 48 additions and 58 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue