Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. from tkinter import *
  2. root = Tk()
  3.  
  4. root.title('DBC')
  5.  
  6. e=Entry(root)
  7. e.pack()
  8. e.focus_set()
  9.  
  10. def getUpdate():
  11. global e
  12. info = e.get()
  13. personsWeight = 0
  14. personsHeight = 0
  15. info[:2] += personsWeight
  16. info[3:] += personsHeight
  17. if personsWeight/2*personsHeight > 80:
  18. print("Sorry buh u need to walk your ass more!")
  19. elif personsWeight/2*personsHeight < 80:
  20. print("Cmon man is that the best you've got?? Get that meat in ur tummy!")
  21. elif personsWeight/2*personsHeight == 80:
  22. print("Holly **** you actually nailed it!")
  23.  
  24.  
  25. b = Button(root, text='Okay', command=getUpdate)
  26. b.pack(side = 'right')
  27. root.mainloop()
  28.  
  29.  
  30. <!-- -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement