this is the code:
import tkinter
from tkinter import *
window = Tk()
window.geometry("1240x500")
window.title("Link Reader")
File = open("Criterion B - fake list document.txt", "r")
File_content = File.read()
File.close()
user_input = input("Enter Site: ")
def link_reader():
if user_input in File_content:
print("Fake Site")
else:
print("Valid")
label = Label(window, text="Link Reader" )
label.place(x=0, y=0)
verify_button = Button(window, text="Verify Link")
verify_button.pack()
entry_field = Entry(window, font=("Arial", 40))
entry_field.pack()
window.mainloop()
This is practically my first time creating GUI in tkinter so how can I link my link reader function to the text box, then how do I make the link reader function start only after clicking a button to run it?