Tk Source Code

Check-in [57bfd887]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [3565268]: On X11, classic checkbuttons and radiobuttons are now invoked when mouse button 1 is released over them, not when it is pressed, as on Windows and macOS, as ttk checkbuttons and radiobuttons, and as other toolkits (Motif, Athena, GTK, Qt). They are not invoked if the mouse is not over the button when button 1 is released. A widget <ButtonRelease-1> binding therefore sees the old value on all platforms.
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | x11-check-toggle-on-release
Files: files | file ages | folders
SHA3-256: 57bfd88713e229c1bb799b22c2b980226b2b6e272d34f207440d2d2477e0cc09
User & Date: serhiy.storchaka 2026-10-08 12:06:06.655
References
2026-10-08
12:08 • Ticket [3565268f] bind<ButtonRelease-1> doesnt have same behavior on windows status still Open with 3 other changes artifact: 454c71a3 user: serhiy.storchaka
Context
2026-11-18
19:56
Fix [3565268]: On X11, classic checkbuttons and radiobuttons are now invoked when mouse button 1 is released over them, not when it is pressed closed check-in: a762cb40 user: jan.nijtmans tags: x11-check-toggle-on-release
2026-10-08
12:06
Fix [3565268]: On X11, classic checkbuttons and radiobuttons are now invoked when mouse button 1 is released over them, not when it is pressed, as on Windows and macOS, as ttk checkbuttons and radiobuttons, and as other toolkits (Motif, Athena, GTK, Qt). They are not invoked if the mouse is not over the button when button 1 is released. A widget <ButtonRelease-1> binding therefore sees the old value on all platforms. check-in: 57bfd887 user: serhiy.storchaka tags: x11-check-toggle-on-release
11:44
Fix [061f633f43]: MacOS aqua: <<ContextMenu >> binding sometimes triggers for incorrect toplevel check-in: 3362fcc0 user: jan.nijtmans tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to doc/checkbutton.n.
Changes to doc/radiobutton.n.
Changes to library/button.tcl.
Changes to tests/button.test.