Friends I have an issue with this code in this code when I run the program the translation doesn't work
from tkinter import * from tkinter import ttk from googletrans import Translator, LANGUAGES #def change(text='type',src='en',dest='hi'): # text1 = text # src1 = src # dest1 = dest # trans = Translator() # trans1 = trans.translate(text,src=src1,dest=dest1) # return trans1.text # #return trans1 for more details def change(text='type', src='English', dest='Hindi'): try: trans = Translator() trans1 = trans.translate(text, src=src, dest=dest) return trans1.text except Exception as e: return str(e) def data(): s = comb_sor.get() d = comb_dest.get() masg = Sor_txt.get(1.0,END) textget = change(text=masg,src=s,dest=d) dest_txt.delete(1.0,END) dest_txt.insert(END,textget) root = Tk() root.title("Translater") root.geometry("400x600") root.config(bg="yellow") lab_txt = Label(root,text="Google",font=("Time New Roman",25,"bold"),bg="blue",fg="white", relief="solid",bd=7,padx=4,pady=4,anchor="center") lab_txt.place(x=112,y=50,height=125, width=480) frame = Frame(root).