tkinter ctrl-A in text widget

Jeff Epler jepler at unpythonic.net
Fri Jan 17 12:38:58 EST 2003


You can replace the binding with
    t = Tk()
    t.bind_class("Text", "<Control-a>", ...)

or you can override it on a particular Text with

    def f(event):
        ...
        return "break"

    x = Text(t)
    x.bind("<Control-a>", f)

Jeff





More information about the Python-list mailing list