Hi, would anyone be able to help with this issue? When I run this file, the Gui shows up but instantly closes and calls the function that should only be called via the "Go" button. Sorry if this is a stupid question, I'm very new to python!
- Code: Select all
from Tkinter import *
top = Tkinter.Tk()
URL = 'sample url' + eCOMSNum
eCOMSLab = Label(top, text="e-COMS/Ticket Search:")
eCOMSNum = Entry(top, bd=1)
eCOMSBut = Button(top, text="Go", command = eCOMSearch(str(eCOMSNum)))