def translate_word(self): ab = self.TargetLanguageList1.get( self.TargetLanguageList1.curselection()) nput = self.imgTxtScrolled.get("1.0", END) obj2 = Translate(nput) obj2.translate(ab) translatedLang = obj2.translatedLang() self.TargetLanguageTextScrolled.delete('0', END) self.TargetLanguageTextScrolled.insert('0', translatedLang) print(ab)
def my_validater(self): nput = self.InputText.get() self.OutputText.delete('0', END) ab = self.TargetLanguageList2.get( self.TargetLanguageList2.curselection()) obj2 = Translate(nput) obj2.translate(ab) translatedLang = obj2.translatedLang() self.OutputText.insert('0', translatedLang) return True