I want to fill my entries when I click in a name of my Combobox without buttons like 'check' to show the values. How can i do that?
import tkinter as tk
from tkinter import ttk
import csv
root = tk.Tk()
cb = ttk.Combobox(root,state='readonly')
labName = ttk.Label(root,text='Names: ')
labTel = ttk.Label(root,text='TelNum:')
labCity = ttk.Label(root,text='City: ')
entTel = ttk.Entry(root,state='readonly')
entCity = ttk.Entry(root,state='readonly')
with open('file.csv','r',newline='') as file:
reader = csv.reader(file,delimiter='\t')
cb.grid(row=0,column=1)
labName.grid(row=0,column=0)
labTel.grid(row=1,column=0)
entTel.grid(row=1,column=1)
labCity.grid(row=2,column=0)
entCity.grid(row=2,column=1)