Tk Source Code

Timeline
Login

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

4 check-ins related to "spinbox-values-keep-value"

2026-10-01
20:18
Fix [1439266]: spinbox -values overrides the value of the -textvariable check-in: 9929acd1 user: jan.nijtmans tags: trunk, main
2026-09-23
19:00
INCOMPLETE experiment, do not merge: close the connection to a display which is not used any more [923174]

Tk opened a display when the first window was created on it, but never closed it, even after all windows on that display were destroyed. If the X server was terminated then, the next XFlush() on the dead socket killed the whole application, although no window of it was displayed there any more. Here the last Tk_DestroyWindow() on a display which no Tk application uses schedules a check at idle time, and the check closes the display if no window has been created on it in the meantime.

This fixes the reported case, but it is not enough: creating a window again on a display which was closed fails in the font layer, because TkCloseDisplay() does not release borders, bitmaps, colors, cursors and fonts. See [923174]. closed check-in: 7caf2758 user: serhiy.storchaka tags: x11-close-unused-display

12:14
Fix [1439266]: spinbox -values overrides the value of the -textvariable

ConfigureEntry() sets the value of the widget from the -textvariable, and then the -values branch replaced it unconditionally with the first element of the list, while the -from/-to branch right below only moves a value which lies outside the range. So a spinbox created with -from and -to kept the value of its -textvariable, but a spinbox created with -values did not. Now the current value is kept if it is one of -values, and the first element is used otherwise, as before. Tests spinbox-5.13 and spinbox-5.14. closed check-in: 52b41b80 user: serhiy.storchaka tags: spinbox-values-keep-value

10:33
Fix for [3de1b72157]: ttk::notebook takes the focus when clicked, even with the -takefocus 0 option. check-in: a695f427 user: csaba tags: trunk, main