summaryrefslogtreecommitdiffstats
path: root/library/button.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-03-27 11:58:20 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-03-27 11:58:20 (GMT)
commit729820db14607dca8ab6a8185bef5928b8bbed6f (patch)
tree2398fdd617e2e98ab71885b07c48a1b3418f1cb0 /library/button.tcl
parent848a0b0986e95d797bcbb1f50240f345a9c2d9a9 (diff)
parentbe9d4efe7ba6f645e1cd3e8c93dfa13f634eb972 (diff)
downloadtk-729820db14607dca8ab6a8185bef5928b8bbed6f.zip
tk-729820db14607dca8ab6a8185bef5928b8bbed6f.tar.gz
tk-729820db14607dca8ab6a8185bef5928b8bbed6f.tar.bz2
[Bug 3608074]: Add <<Invoke>> bindings to Button's, Listbox and Menu.
Document <<Invoke>>, <<ThemeChanged>>, <<EnteredChild>> (ttk_pandedwindow only) and <<Increment/Decrement>> (ttk_spinbox only)
Diffstat (limited to 'library/button.tcl')
-rw-r--r--library/button.tcl9
1 files changed, 9 insertions, 0 deletions
diff --git a/library/button.tcl b/library/button.tcl
index a1f0a26..815b137 100644
--- a/library/button.tcl
+++ b/library/button.tcl
@@ -109,6 +109,15 @@ bind Checkbutton <space> {
bind Radiobutton <space> {
tk::CheckRadioInvoke %W
}
+bind Button <<Invoke>> {
+ tk::ButtonInvoke %W
+}
+bind Checkbutton <<Invoke>> {
+ tk::CheckRadioInvoke %W
+}
+bind Radiobutton <<Invoke>> {
+ tk::CheckRadioInvoke %W
+}
bind Button <FocusIn> {}
bind Button <Enter> {