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
- assignee changed to: "aku"
- closer changed to: "nobody"
- 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. - 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. - login: "dkf"
- mimetype: "text/html"
- resolution changed to: "Invalid"
- severity changed to: "Minor"
- status changed to: "Pending"
- subsystem changed to: "24. Channel Commands"
- username: "dkf"