I want to get the text from 3 different entry boxes to 3 variables with the click of 1 button, but it gives me an error if I try to get more than 1.
from tkinter import StringVar
from tkinter import *
root = Tk()
a = Entry(root)
b = Entry(root)
c = Entry(root)
def callback():
a_return = [a.get(),b.get(),c.get()]
b = Button(root, text="get", width=10, command=callback).pack()
mainloop()
a_return = [a.get(),b.get(),c.get()]
AttributeError: 'NoneType' object has no attribute 'get'