Tk Source Code

Check-in [a2611c44]
Login

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

Overview
Comment:Fix [3da0592db4]: after [auto_reset], the Tk file dialogs failed with "invalid command name .__tk_filedialog.contents.icons" (X11), or with "Duplicate element ComboboxPopdownFrame.border" (Tk dialogs on Windows). auto_reset removes the TclOO classes of the icon list, which destroys the cached dialog's icon list, and the commands of tk.tcl, so tk.tcl and ttk.tcl get sourced again. Recreate the dialog when its icon list is gone, let megawidget.tcl be sourced again, and load the ttk themes only once. Test choosedir-6.1.
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | dialogs-after-auto-reset
Files: files | file ages | folders
SHA3-256: a2611c4418fe8aa0195213d1ca4ca217fcf2d45db4911033b882757d7172a5a0
User & Date: serhiy.storchaka 2026-10-23 22:11:57.669
References
2026-10-23
22:12 • Ticket [3da0592d] Filesystem dialogs conflict with auto_reset (under Linux) status still Open with 4 other changes artifact: 2ffb600d user: serhiy.storchaka
Context
2026-11-09
20:42
Fix for [3da0592db4]: Filesystem dialogs conflict with auto_reset (under Linux) check-in: 5926b175 user: csaba tags: trunk, main
2026-10-23
22:11
Fix [3da0592db4]: after [auto_reset], the Tk file dialogs failed with "invalid command name .__tk_filedialog.contents.icons" (X11), or with "Duplicate element ComboboxPopdownFrame.border" (Tk dialogs on Windows). auto_reset removes the TclOO classes of the icon list, which destroys the cached dialog's icon list, and the commands of tk.tcl, so tk.tcl and ttk.tcl get sourced again. Recreate the dialog when its icon list is gone, let megawidget.tcl be sourced again, and load the ttk themes only once. Test choosedir-6.1. closed check-in: a2611c44 user: serhiy.storchaka tags: dialogs-after-auto-reset
20:19
Fix [360434]: no longer replace "::" in manual page with "_" on installation check-in: a248516e user: jan.nijtmans tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to library/choosedir.tcl.
Changes to library/megawidget.tcl.
Changes to library/tkfbox.tcl.
Changes to library/ttk/ttk.tcl.
Changes to tests/choosedir.test.