how can i add a timer to an instance of a class in tkinter?

You don't need to add atimer. You can call the instance's method 'after'

after_id = my_widget.after(milliseconds, myFunction, arg1, arg2, arg3)

The returned Id can be used like this

my_widget.after_cancel(after_id)

to cancel the timer.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.