Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import play
- from random import randint
- play.set_backdrop("black")
- place1 = play.new_box(color = "ivory" , x = 200, width = 100, height = 200, border_width = 5, border_color = "indigo")
- place2 = play.new_box(color = "ivory" , x = 0, width = 100, height = 200, border_width = 5, border_color = "indigo")
- place3 = play.new_box(color = "ivory" , x = -200, width = 100, height = 200, border_width = 5, border_color = "indigo")
- hello = play.new_text(words = "Hello! Press the button to test your luck!" , y = 250, font_size=40, color = "floralwhite")
- result = play.new_text(words= "Start!", y = -250, font_size=40, color = "floralwhite")
- button = play.new_box(color="ivory", y = 170, width=150, height=70)
- button_text=play.new_text(words="Press to start!", y = 170, font_size=20)
- num1_text = play.new_text(words = '', x = -200, font_size = 100)
- num2_text = play.new_text(words = '', x = 0, font_size = 100)
- num3_text = play.new_text(words = '', x = 200, font_size = 100)
- play.start_program()
Advertisement
Add Comment
Please, Sign In to add comment