def ReadButton(): global idTextVar global nameTextVar global passwordTextVar global lastNameTextVar global directionTextVar global commentText try: ret = DataBaseManager.ReadTuple(int(idTextVar.get())) nameTextVar.set(ret[0][1]) passwordTextVar.set(ret[0][2]) lastNameTextVar.set(ret[0][3]) directionTextVar.set(ret[0][4]) commentText.delete(1.0, "end") commentText.insert(1.0, ret[0][5]) except: messagebox.showerror(title="Index_Error", message="Id its not found") DeleteMenu()