# -Q2.B.1- change the default class bindings?

    From: -II-  Tk Questions and Answers - How can I:

    A2.B.1. All default class bindings for Tk widgets are initialized in
    $tk_library/tk.tcl.  Use this file as a guide to implement new
    bindings.  For instance, the following code duplicates Button 1's
    drag-select facility in Button 3 for all listboxes:

    bind Listbox <3> {%W select from [%W nearest %y]}
    bind Listbox <B3-Motion> {%W select to [%W nearest %y]}

Parent document is top of "FAQ: comp.lang.tcl Tk Toolkit Usage Questions And Answers (1/1)"
Previous document is "-Q2.A.8- call Tk scripts from a C program?"
Next document is "-Q2.B.2- delete a binding?"