-2

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) 
James
  • 32,991
  • 4
  • 47
  • 70
anusha
  • 11
  • 1
  • 1

1 Answers1

0

if i understand your question, try something like this.

    y = 19
    for err in chkr:
        Label(window, text = "your error", fg="orange", bg="black", font="ariel").grid(row=y, column=3, columnspan=5)
        y = y + 1
dimitris tseggenes
  • 3,031
  • 2
  • 16
  • 23