Tk Source Code

Check-in [1f9685c9]
Login

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

Overview
Comment:textDisp-41.1: wait up to 10 seconds for the line metrics update instead of one, since it did not complete in time on the slower Windows and macOS CI machines. Without the fix, no widget gets synchronized at all.
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | text-metrics-after-redraw
Files: files | file ages | folders
SHA3-256: 1f9685c9525f4d5fac86b7d589bafebdad75b312ed4d478882eb7f74c6e1bee1
User & Date: serhiy.storchaka 2026-10-24 08:50:01.683
References
2026-10-24
08:51 • Ticket [1348333f] 8.5 text widget creates to many timers status still Open with 3 other changes artifact: afe809ab user: serhiy.storchaka
Context
2026-10-27
08:59
[1348333] reduce test matrix of mass text widget test as it already takes more than 10 seconds on Ci (1.1 seconds locally) check-in: f2efd36d user: oehhar tags: text-metrics-after-redraw
2026-10-24
08:50
textDisp-41.1: wait up to 10 seconds for the line metrics update instead of one, since it did not complete in time on the slower Windows and macOS CI machines. Without the fix, no widget gets synchronized at all. check-in: 1f9685c9 user: serhiy.storchaka tags: text-metrics-after-redraw
2026-10-23
13:39
Fix [1348333fff]: with many text widgets, the asynchronous line metrics update polled with 1 ms timers while a redisplay was pending, which starved the idle handlers, including the redisplay itself. Now the update waits without a timer, and DisplayText() restarts it when the redisplay is no longer pending. Unlike the backed-out [4b3b840a41], which waited in a when-idle handler, a nested [update] during the redisplay (as in textWind-17.10) cannot loop. Test textDisp-41.1. check-in: 009b2c8f user: serhiy.storchaka tags: text-metrics-after-redraw
Changes
Unified Diff Side-by-Side Diff Patch
Changes to tests/textDisp.test.