Tk Source Code

Check-in [4d3273ea]
Login

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

Overview
Comment: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).

Downloads: See separate download page
Timelines: family | ancestors | descendants | both | tests-high-dpi
Files: files | file ages | folders
SHA3-256: 4d3273ea61fe3501074981f5295820a5c7dc86f1d90cf43f4e49796502596c9e
User & Date: serhiy.storchaka 2026-11-08 10:43:48.393
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 scrollbar arrows on Windows.

The arrows and the minimal slider length grow with the scale (60 pixels at 350%). Use longer scrollbars at high scale and positions relative to the arrows and the trough. check-in: 48d0850e user: serhiy.storchaka tags: tests-high-dpi

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-10-02
13:40
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: 1352f8ee user: serhiy.storchaka tags: tests-high-dpi

Changes
Unified Diff Side-by-Side Diff Patch
Changes to tests/frame.test.
Changes to tests/text.test.
Changes to tests/textDisp.test.
Changes to tests/textImage.test.