This is not something configurable in Tk-Tk, it does not control how quickly the keyboard driver sends out repeated key events.
Instead, you can bind to a button by clicking a button and a button to set and then disable the flag. Then you can write a function that does whatever you want, and then check the flag and call yourself again after any delay.
The function will look something like this:
def hello(x): global SHOULD_REPEAT print "hello" if SHOULD_REPEAT: root.after(10, hello)
To do this, you need a little more logical, but this is a general idea.
source share