Reads a value from the option database. The three arguments describe how to look up the value in the database; the window references a Tk widget, and the name and class describe the option of that widget on two axes. Conventionally, the name should start with a lower case letter, and the class should start with an upper case letter; both must not contain a “.” character (as that is used as a separator in the option database).
button .b option add *button.rightClick {bell} bind .b <3> {uplevel "#0" [option get %W rightClick Command]}