Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 41448ac1475f9e655af10eed825a47835ba50791
Ticket: 3566675fffffffffffffffffffffffffffffffff
wish widget linked to exec start hangs on windowsxp
User & Date: dkf on 2013-10-21 18:50:26
Changes

  1. assignee changed to: "aku"
  2. closer changed to: "nobody"
  3. comment changed to:
    Dear Experts,
    
     I am using wish for GUI with a widget named "open directory" and linked to command to open the directory, the code is as below .
    
    button .b1 -text "Open Config File Directory " -command openconfigfiledir
    grid .b1 -in . -row 1 -column 0 -sticky ew -padx 5 -pady 5 
    
    proc openconfigfiledir {} {
    set folderpath "c:\test"
    eval exec [auto_execok explorer] {"$folderpath"}
    }
    
    It works fine in windows 7 but the same on Windows XP hangs. When I kill the program the folder opens. I am novoice in TCL any help is appreciated.
    Thanks, Nagaraj.
    
  4. icomment:
    Your code would be better off written as:
    <pre>
    proc openconfigfiledir {} {
        set folderpath c:/test
        exec {*}[auto_execok explorer] [file nativename $folderpath]
    }
    </pre>
    I don't know if that fixes it, but it's how you should do it anyway (if you're not yet using 8.5 or 8.6, you should <i>definitely</i> upgrade; 8.4 is now out of support). Note that support for XP is going to be harder and harder to come by in the future.
    
  5. login: "dkf"
  6. mimetype: "text/html"
  7. resolution changed to: "Invalid"
  8. severity changed to: "Minor"
  9. status changed to: "Pending"
  10. subsystem changed to: "24. Channel Commands"
  11. username: "dkf"