Advertisement
IHATEMICROWAVEOVEN

turlte shop

Nov 2nd, 2024 (edited)
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. def buyItem1(x,y):
  2. # fill this in
  3. pass
  4.  
  5. def buyItem2(x,y):
  6. # fill this in
  7. pass
  8.  
  9. shopButton1 = turtle.Turtle()
  10. shopButton1.penup()
  11. shopButton1.goto(-200, -200)
  12. shopButton1.shape('square')
  13. shopButton1.shapesize(3)
  14. shopButton1.write('CLICK UPGRADE', False, 'center')
  15. shopButton1.color('#86898f')
  16. shopButton1.pencolor('black')
  17. shopButton1.goto(-200, -150)
  18. shopButton1.onclick(buyItem1)
  19.  
  20. shopButton2 = turtle.Turtle()
  21. shopButton2.penup()
  22. shopButton2.goto(-50, -200)
  23. shopButton2.shape('square')
  24. shopButton2.shapesize(3)
  25. shopButton2.write('guy who clicks for you', False, 'center')
  26. shopButton2.color('#86898f')
  27. shopButton2.pencolor('black')
  28. shopButton2.goto(-50, -150)
  29. shopButton2.onclick(buyItem2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement