Advertisement
zhongnaomi

time count down

Jan 5th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. from guizero import App, Text
  2.  
  3. def decrease():
  4.     text.value = int(text.value) - 1
  5.  
  6. app = App("text.value")
  7.  
  8. text = Text(app, text="1200")
  9. text.repeat(1200, decrease)
  10. app.display()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement