Advertisement
EmmettMilligan

Python Graphics Growing Text

Feb 11th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. from graphics import*;
  2.  
  3. window = GraphWin("Growing Text doe",500,500)
  4. window.setBackground("black")
  5.  
  6. T1 = Text(Point(250,250),"THIKTHOK")
  7. T1.setTextColor("white")
  8. T1.draw(window)
  9.  
  10. for x in range(5,36):
  11. time.sleep(0.05)
  12. T1.setSize(x)
  13. if x == 36:
  14. x = x - 31
  15.  
  16. window.getMouse()
  17. window.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement