My objective is to create a list of labels(or on big label) such that each label displays a unique output. My program reads the input from a scrolled text and checks for errors and then displays all errors in the form of a list.
def check():
import enchant
from enchant.checker import SpellChecker
chkr=SpellChecker("en_US")
chkr.set_text(str(bd.get("1.0", END)))
for err in chkr:
out3=Label(window, text=("ERROR:", err.word), fg="orange", bg="black", font="ariel")
out3.grid(row=19, column=3, columnspan=5)