mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Fix turtle so that you can launch the demo2 function on its own instead of only
when the module is launched as a script.
This commit is contained in:
parent
827ee4411f
commit
d80e0c8677
2 changed files with 5 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ pictures can easily be drawn.
|
|||
"""
|
||||
|
||||
from math import * # Also for export
|
||||
from time import sleep
|
||||
import Tkinter
|
||||
|
||||
speeds = ['fastest', 'fast', 'normal', 'slow', 'slowest']
|
||||
|
|
@ -949,7 +950,6 @@ def demo2():
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
from time import sleep
|
||||
demo()
|
||||
sleep(3)
|
||||
demo2()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue