Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-10-22
17:19 • Ticket [3566675fff] wish widget linked to exec start hangs on windowsxp stat... artifact: 0c9f077d9e user: serhiy.storchaka
2026-10-15
11:29 • Closed ticket [3566675fff]. artifact: 01878de50d user: serhiy.storchaka
2013-10-21
18:50 • Pending ticket [3566675fff]. artifact: 41448ac147 user: dkf
2012-09-11
14:05 • New ticket [3566675fff]. artifact: 7e273011d7 user: pcbnagaraj

wish widget linked to exec start hangs on windowsxp

Closed / Invalid3566675fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 42 days ago
Descriptionplain2012-09-11 14:05:39
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.
dkfhtml2013-10-21 18:50:26

Your code would be better off written as:

proc openconfigfiledir {} {
    set folderpath c:/test
    exec {*}[auto_execok explorer] [file nativename $folderpath]
}
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 definitely 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.

serhiy.storchakawiki2026-10-15 11:29:06

Closing: no reply since 2013.

serhiy.storchaka Ticket [3566675fff]: 3 changes [History diff]2026-10-22 17:19:26
Log in (anonymous is fine) to add a comment.