from tkinter import *
main = Tk()
e = Entry(main).pack()
main.configure(bg = "Black")
s = e.get()
main.mainloop()
but then I get this error:
Traceback (most recent call last):
File "//agsb2/2014intake/kfullman14/My Documents/CICT/Programming U6/Python/Python Challenges/Tkinter test.py", line 9, in <module>
s = e.get()
AttributeError: 'NoneType' object has no attribute 'get'
Any help would be greatly appreciated. Thanks in advance.