import tkinter as tk
class App(tk.Frame):
def __init__(self):
super().__init__()
self.pack()
self.buttons = []
self.entries = []
You can set the state
of a widget to 'disabled'
from tkinter import *
root = Tk()
entry = Entry(root, state = 'disabled')
To disable an individual item:
entry['state'] = 'disabled'
When you push the button, get it's location in the list, than compare that to the entry in the other list. If they match, change its state.