Tk Library Source Code

Check-in [adab3e651c]
Login

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

Overview
Comment:ctext: let the text widget keep the modified flag. ctext is in the bindtags of its text widget, so the <<Modified>> the text widget sends also reached bindings on the ctext, in addition to the one ctext sent itself. Now only the text widget sends it, once each time the flag changes, and "edit modified" goes to the text widget. ctext no longer sets the flag after inserts and deletes; the text widget does it when the text changes. The tests now let queued events be delivered. See [3567463fff].
Downloads: See separate download page
Timelines: family | ancestors | ctext-modified-event
Files: files | file ages | folders
SHA3-256: adab3e651c67450f3a483671fddc9b3c77257379bae026f84bd35c8ccce1cdf4
User & Date: serhiy.storchaka 2026-11-15 23:24:46.231
Context
2026-11-15
23:24
ctext: let the text widget keep the modified flag. ctext is in the bindtags of its text widget, so the <<Modified>> the text widget sends also reached bindings on the ctext, in addition to the one ctext sent itself. Now only the text widget sends it, once each time the flag changes, and "edit modified" goes to the text widget. ctext no longer sets the flag after inserts and deletes; the text widget does it when the text changes. The tests now let queued events be delivered. See [3567463fff]. leaf check-in: adab3e651c user: serhiy.storchaka tags: ctext-modified-event
23:07
Fix [3567463fff]: ctext sent <<Modified>> on every change, and not at all for "edit modified". Like the text widget, <<Modified>> is now sent only when the modified flag changes, also when it is set with "edit modified". Add ctext.test. check-in: 8b53c6beb2 user: serhiy.storchaka tags: ctext-modified-event
Changes
Unified Diff Side-by-Side Diff Patch
Changes to modules/ctext/ctext.tcl.
Changes to modules/ctext/ctext.test.