cjiayeealgorithmics

Untitled

Nov 27th, 2021
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.99 KB | None | 0 0
  1. import play
  2. from random import randint
  3.  
  4. play.set_backdrop("black")
  5.  
  6. place1 = play.new_box(color = "ivory" , x = 200, width = 100, height = 200, border_width = 5, border_color = "indigo")
  7. place2 = play.new_box(color = "ivory" , x = 0, width = 100, height = 200, border_width = 5, border_color = "indigo")
  8. place3 = play.new_box(color = "ivory" , x = -200, width = 100, height = 200, border_width = 5, border_color = "indigo")
  9.  
  10. hello = play.new_text(words = "Hello! Press the button to test your luck!" , y = 250, font_size=40, color = "floralwhite")
  11. result = play.new_text(words= "Start!", y = -250, font_size=40, color = "floralwhite")
  12.  
  13. button = play.new_box(color="ivory", y = 170, width=150, height=70)
  14. button_text=play.new_text(words="Press to start!", y = 170, font_size=20)
  15. num1_text = play.new_text(words = '', x = -200, font_size = 100)
  16. num2_text = play.new_text(words = '', x = 0, font_size = 100)
  17. num3_text = play.new_text(words = '', x = 200, font_size = 100)
  18.  
  19. play.start_program()
  20.  
Advertisement
Add Comment
Please, Sign In to add comment