Skip to content
Advertisement

Delete text from Canvas, after some time (tkinter)

I need to remove text from canvas after some time.

JavaScript

I tried this:

JavaScript

Result: It does not even appear the text.

And this:

JavaScript

Not working too.

Please help, I looked almost everywhere and I didn’t find how to do that.

Advertisement

Answer

You have to give after a reference to a function. The way you’re doing it is immediately calling the delete function and then passing the result of that to after.

It needs to look like this:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement