Im getting error when am trying to access the function name "def check" in which i've stated some if else cnditions which is not working as expected, any help will be highly appreciated.
HERES THE CODE
from tkinter import *
w=Tk()
w.geometry('1000x800')
w.configure(bg='#6863f6')
def h1():
otpentry = Entry(w, textvar=StringVar(),bg="white", fg="black")
otpentry.place(x=290, y=330)
optbuton = Button(w, text="subbmit",bg='white', fg='black',command=check)
optbuton.place(x=420, y=330)
def check():
if int(otpentry.get())==1234:
timeLabl = Label(w, text=" Bank Transaction Successful", bg="white", fg="black")
timeLabl.place(x=250, y=400)
else:
int(otpentry.get())!=1234:
timeLabl = Label(w, text=" Bank Transaction Failed", bg="white", fg="black")
timeLabl.place(x=250, y=400)
bu1=Button(w,text="ok",bg='white',fg='black',command=h1)
bu1.place(x=200,y=180)
w.mainloop()
otpentry.get()insidecheck()to see if the value is as you expected