<- previous    index    next ->

turtle graphics and move


A turtle can be programmed to follow a path around the screen
leaving a trail, and leaving some objects.

turtle2.py3 source code



turtle3.py3 source code
turtle3.py3 output



turtlec.py3 source code



There can be delay between adding to a display in tkinter.
In  after.py3  there is a 5 second delay between showing
each day of the week in random order.
5000 milliseconds is 5 seconds.
The eye can bearly notice a 1 second delay.

after.py3 source code



Drawing different shapes, no turtle showing,
python3, tkinter, and turtle. These need to be run
to see what is possible:

turtle_star.py3 source code



Moving an object with control over speed and direction:

move2.py3 source code

 color change to blue

 color change to red

Using "move" with tkinter gives user control of direction
with arrow keys and speed with mouse click:

move_object_tk.py3 source code



# must run to see movement on screen:

path_tk.py3 source code needs mouse click

move_path.py3 source code  does move

move_dota.py3 source code

move_dot.py3 source code

move_rect.py3 source code

 
    <- previous    index    next ->

Other links

Many web sites on Java GUI, AWT, Swing, etc.
Many web sites on Python wx, tk, qt, etc.

Go to top