4.6.5. Write a MessageΒΆ

Video of write.py running.


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
'''
Write a message.
'''

from turtleplotbot import TurtlePlotBot
bot=TurtlePlotBot()

# make the text 2 times larger then the default
bot.setscale(2)
bot.write("Hello!", "fonts/scripts.fnt")
bot.done()

__import__("menu")      # return to turtleplotbot menu

write.py