Tk Source Code

Check-in [73f2b9ce]
Login

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

Overview
Comment:Tests: do not let the minimal width of Windows toplevels break tests at high scale.

Windows does not let a toplevel be narrower than its title bar, which grows with the scale (404 pixels at 350%). The new utility removeTitleBar removes the title bar of a test window on Windows if this limit is larger than 160 pixels. Tests which need the title bar (iconify, fullscreen) use a window not narrower than the limit. The text widgets in textIndex.test and textWind.test are no longer centered in a wider window.

Downloads: See separate download page
Timelines: family | ancestors | descendants | both | tests-high-dpi
Files: files | file ages | folders
SHA3-256: 73f2b9cedd03e38dd481557a8d58164680a4ed2306582d4312be38c2961cfeb6
User & Date: serhiy.storchaka 2026-11-08 10:43:47.734
References
2026-11-08
10:49 • Ticket [deca13e8] Tests fail at high display scale status still Open with 3 other changes artifact: d45384ab user: serhiy.storchaka
Context
2026-11-08
10:43
Tests: do not depend on the size of fonts and lengths specified in points.

They grow with the DPI. Use pixel sizes which are the same as before at 96 DPI, or positions computed from the layout (textDisp, frame, textImage and text-27.15b). check-in: 4d3273ea user: serhiy.storchaka tags: tests-high-dpi

10:43
Tests: do not let the minimal width of Windows toplevels break tests at high scale.

Windows does not let a toplevel be narrower than its title bar, which grows with the scale (404 pixels at 350%). The new utility removeTitleBar removes the title bar of a test window on Windows if this limit is larger than 160 pixels. Tests which need the title bar (iconify, fullscreen) use a window not narrower than the limit. The text widgets in textIndex.test and textWind.test are no longer centered in a wider window. check-in: 73f2b9ce user: serhiy.storchaka tags: tests-high-dpi

2026-11-07
18:00
[9ab6e37e1acbcd9a] disallow "wm forget ." check-in: 694e33a1 user: oehhar tags: trunk, main
2026-10-02
13:40
Tests: do not let the minimal width of Windows toplevels break tests at high scale.

Windows does not let a toplevel be narrower than its title bar, which grows with the scale (404 pixels at 350%). The new utility removeTitleBar removes the title bar of a test window on Windows if this limit is larger than 160 pixels. Tests which need the title bar (iconify, fullscreen) use a window not narrower than the limit. textDisp.test removes the title bar of "." for the whole file instead of four tests, and the text widgets in textIndex.test, textWind.test and text-10.38 are no longer centered in a wider window. check-in: 96ca9851 user: serhiy.storchaka tags: tests-high-dpi

Changes
Unified Diff Side-by-Side Diff Patch
Changes to tests/canvWind.test.
Changes to tests/event.test.
Changes to tests/grid.test.
Changes to tests/listbox.test.
Changes to tests/pack.test.
Changes to tests/panedwindow.test.
Changes to tests/place.test.
Changes to tests/testutils.tcl.
Changes to tests/textIndex.test.
Changes to tests/textWind.test.
Changes to tests/winWm.test.
Changes to tests/wm.test.