from tkinter import*
from num2words import*
def num2word():
    number=strvar.get()
    ans=num2words(str(number))
    label1.configure(text=ans)
mainwindow=Tk()
mainwindow.title("number to word converter")
mainwindow.geometry("1000x700")
label=Label(mainwindow,text="Number to Word Converter",font=("helvitica",25,"bold"))
label.place(x=500,y=50)
label=Label(mainwindow,text="Enter Number :",font=("bold",20))
label.place(x=250,y=100)
strvar=StringVar()
entry=Entry(mainwindow,textvariable=strvar,font=("bold",30))
entry.place(x=450,y=100,width=300,height=35)
btn=Button(mainwindow,text="Submit",font="helvitica",fg="blue",command=num2word)
btn.place(x=500,y=150)
label1=Label(mainwindow,text="",font=("bold italic",20))
label1.place(x=750,y=100)

mainwindow.mainloop()
