Sie sind auf Seite 1von 1

turtle.

penup()
turtle.goto(0,topY)
Meme Generator turtle.pendown()
import turtle text = turtle.textinput(title = "top
text", prompt ="enter the top text")
turtle.write(arg = text, move = False,
num = turtle.numinput(title = "Title", align = "center", font = (usedFont,
prompt = "Choose:\n1: wow baby\n2: 48, "normal"))
gollum\n3: success child\n4: surrender
cat\n5: maze guys") turtle.penup()
topY = topY+3
if num == 1: turtle.color("white")
turtle.bgpic(picname = "wow turtle.goto(-3,topY)
baby.gif") turtle.pendown()
turtle.setup(width=479, turtle.write(arg = text, move = False,
height=656) align = "center", font = (usedFont,
topY = 250 48, "normal"))
bottomY = -300
cornerR = 200 turtle.color("black")
elif num == 2: turtle.penup()
turtle.bgpic(picname = turtle.goto(0, bottomY)
"gollum.gif") turtle.pendown()
turtle.setup(width=566, text = turtle.textinput(title =
height=518) "bottom text", prompt ="enter the
topY = 150 bottom text")
bottomY = -230 turtle.write(arg = text, move = False,
cornerR = 250 align = "center", font = (usedFont,
elif num == 3: 48, "normal"))
turtle.bgpic(picname = "success
child.gif") turtle.color("white")
turtle.setup(width=926, bottomY = bottomY+3
height=616) turtle.penup()
topY = 200 turtle.goto(-3, bottomY)
bottomY = -280 turtle.pendown()
cornerR = 380 turtle.write(arg = text, move = False,
elif num == 4: align = "center", font = (usedFont,
turtle.bgpic(picname = "surrender 48, "normal"))
cat.gif")
turtle.setup(width=460, turtle.penup()
height=565) cornerD = bottomY-15
topY = 200 turtle.goto(cornerR, cornerD)
bottomY = -250 turtle.color("black")
cornerR = 200 turtle.pendown()
elif num == 5: turtle.write(arg = "Lin the Turtle",
turtle.bgpic(picname = "maze move = False, align = "right", font =
guys.gif") ("Palatino Linotype", 15, "normal"))
turtle.setup(width=640, cornerD = cornerD+1
height=360) cornerR = cornerR-3
topY = 100 turtle.goto(cornerR, cornerD)
bottomY = -150 turtle.color("white")
cornerR = 310 turtle.write(arg = "Lin the Turtle",
move = False, align = "right", font =
chooseFont = turtle.numinput(title = ("Palatino Linotype", 15, "normal"))
"Font", prompt = "Choose:\n1:
Impact\n2: Arial\n3: Tahoma\n4: turtle.hideturtle()
Verdana\n5: Comic Sans MS")
turtle.exitonclick()
if chooseFont == 1:
usedFont = "Impact"
elif chooseFont == 2:
usedFont = "Arial"
elif chooseFont == 3:
usedFont = "Tahoma"
elif chooseFont == 4:
usedFont = "Verdana"
elif chooseFont == 5:
usedFont = "Comic Sans MS"

Das könnte Ihnen auch gefallen