You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DirectoryFileSelector: add a single-select option #274
DirectoryFileSelector is always multi-select (selectmode=tk.MULTIPLE, plus Select All / Deselect All). Tools that need exactly one file can't stop the user ticking several, so each tool has to check the selection itself, and a tool that doesn't silently uses the first ticked file.
Expected behaviour:
Add a multi_select: bool = True argument. With multi_select=False the list allows one file only (selectmode=tk.BROWSE) and Select All / Deselect All are hidden. The default keeps today's behaviour, so existing callers are unchanged.
Activity