Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- root = Tk()
- root.title('DBC')
- e=Entry(root)
- e.pack()
- e.focus_set()
- def getUpdate():
- global e
- info = e.get()
- personsWeight = 0
- personsHeight = 0
- info[:2] += personsWeight
- info[3:] += personsHeight
- if personsWeight/2*personsHeight > 80:
- print("Sorry buh u need to walk your ass more!")
- elif personsWeight/2*personsHeight < 80:
- print("Cmon man is that the best you've got?? Get that meat in ur tummy!")
- elif personsWeight/2*personsHeight == 80:
- print("Holly **** you actually nailed it!")
- b = Button(root, text='Okay', command=getUpdate)
- b.pack(side = 'right')
- root.mainloop()
- <!-- -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement