Tk Source Code

View Ticket
Login
Ticket UUID: 964af13db040ec0811a68844d8a08f50e3339e8c
Title: tk_chooseDirectory : linux
Type: Bug Version: 8.6.6
Submitter: bll Created on: 2017-10-02 23:42:14
Subsystem: 36. [tk_chooseDirectory] Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2017-10-02 23:49:35
Resolution: None Closed By: nobody
    Closed on:
Description:
The choosedirectory utility is not very useful for non-existent directories.

I would rather that the utility accept any -initialdir parameter when -mustexist is false.  When -mustexist is true, the current behaviour would be good.

tk_chooseDirectory -initialdir /home/bll/i/want/to/install/here/but/it/does/not/exist/yet -mustexist false

Edit:

It is just rather unexpected behaviour, and seeing /var/tmp/xyz.Kykjdf instead of the specified path is not useful.  Don't know if this really needs fixing.

A widget to choose a non-existent directory has quite different UI needs than a widget choosing an existing directory.