I am new to TKinter and I am not able to figure out how to store the input from a textbox in TKINTER. I've tried following virtually every tutorial and looked at similar posts but their ideas arent fixing my issue :/.
def cityInfoWindow(self, flightMap):
infoWindow = Tk()
infoWindow.geometry("500x500+100+100")
infoWindow.title("CSAir-City Information")
global input
input = StringVar()
cityEntry = Entry(infoWindow,textvariable = input).pack()
okButton = Button(infoWindow, text = 'Submit', command = lambda:self.getCityInfo(infoWindow, input)).pack()
def getCityInfo(self, infoWindow, input):
content = input.get()
print content
return
Ive tried passing in my input into my function but that doesnt work.