You don't have any of the command functions, see here http://effbot.org/tkinterbook/button.htm Also, you can only declare Tk() once without possible problems. If you want more than one window use a Toplevel, look on effbot.org Finally, pack() returns None, so b, e, l, etc is None on lines like this
b=Button(root1,text="OK", width=5, command=check1).pack()so see https://books.google.com/books?id=q8W3WQ...ne&f=false and the pack() geometry manager on effbot as well. https://wiki.python.org/moin/TkInter