Hello I am trying to get information from input fields and trying to print giris.get() ,but ı cant access this one where is the problem ? I searched a lot in stackoverflow ,but none of them solved my problem
from selenium import webdriver
from tkinter import *
root = Tk()
root.geometry("500x400")
root.title("Spotify Ortak Sarkilar")
giris = Entry(root,width = 50,
bg = "black",
fg = "white",
)
giris2 = Entry(root,width = 50,
bg = "black",
fg = "white",
)
giris3 = Entry(root,width = 50,
bg = "black",
fg = "white",
)
get1 = ""
get2 = ""
x = ""
def myclick():
global x
x = (giris.get())
y = (giris2.get())
root.destroy()
giris.pack(padx= 50,pady = 20)
giris2.pack(padx= 50,pady = 10)
giris.insert(0,"1.Spotify Linkini giriniz.")
giris2.insert(0,"2.Spotify Linkini giriniz.")
buton = Button(root,text ="Yolla", command =lambda: myclick , fg = "white" ,bg = "black" ,padx= 50)
buton.pack(pady = 100)
print(x)
root.mainloop()