How to update text created with canvas.create_text() in tkinter

Posted on: March 2nd, 2023
By: Tadeo Martinez

Assign it to a variable

answer = canvas.create_text(400, 263, text='word', font=('Ariel', 60, 'bold'))

Either in the function or elsewhere where you’ll be updating the text, use the .itemconfig

canvas.itemconfig(answer, text=new_word_french)

Have any questions or comments? Write them below!


Leave a Reply

Your email address will not be published. Required fields are marked *