Public feed
#726983
#Michael Cusack
# Project 7-1
from Tkinter import *
def calc():
i = int(str(e.get()))
r = int(str(e2.get()))
a = int(str(e3.get()))
d = int(str(e4.get()))
window = Tk()
lbl = Label(window, text='Initial # of organisms:')
lbl.pack(side=TOP)
e = Entry(name='text')
e.pack(expand = YES, fill = BOTH)
lbl2 = Label(window, text='Growth Rate:')
lbl2.pack(side=TOP)
e2 = Entry(name='text')
e2.pack(expand = YES, fill = BOTH)
lbl3 = Label(window, text='Hours to achieve rate:')
lbl3.pack(side=TOP)
e3 = Entry(name='text')
e3.pack(expand = YES, fill = BOTH)
lbl4 = Label(window, text='Hours population grows:')
lbl4.pack(side=TOP)
e4 = Entry(name='text')
e4.pack(expand = YES, fill = BOTH)
b = Button(window, text='Calculate', command=calc)
b.pack(side=BOTTOM)
window.mainloop()