#1983 Error if parent widget has space in name

obsolete: 8.4.9
closed-fixed
6
2005-11-22
2005-10-23
No

(ActiveTcl 8.4.9 on a Fedora Core 4 box)

% frame {.big gap}
.big gap
% tk_getSaveFile -parent {.big gap}

...gives the following error box when you hit Save:

can't set "data(selectPath)": wrong # args: should be
"::tk::dialog::file::SetPath w name1 name2 op"
can't set "data(selectPath)": wrong # args: should be
"::tk::dialog::file::SetPath w name1 name2 op"
while executing
"set data(selectPath) $path"
(procedure "::tk::dialog::file::SetPathSilently"
line 5)
invoked from within
"::tk::dialog::file::SetPathSilently $w $path"
("OK" arm line 7)
invoked from within
"switch -- $flag {
OK {
if {[string equal $file ""]} {
# user has entered an existing (sub)directory
set data(selectPath) $path
$data(ent) ..."
(procedure "::tk::dialog::file::VerifyFileName" line 9)
invoked from within
"::tk::dialog::file::VerifyFileName $w $text"
(procedure "::tk::dialog::file::ActivateEnt" line 22)
invoked from within
"::tk::dialog::file::ActivateEnt $w"
(procedure "::tk::dialog::file::OkCmd" line 18)
invoked from within
"::tk::dialog::file::OkCmd {.big gap.__tk_filedialog}"
invoked from within
"{.big gap.__tk_filedialog.f2.ok} invoke"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list $w invoke]"
(procedure "tk::ButtonUp" line 22)
invoked from within
"tk::ButtonUp .big\ gap.__tk_filedialog.f2.ok"
(command bound to event)

Discussion

  • Donal K. Fellows

    • milestone: 503286 --> obsolete: 8.4.9
    • priority: 5 --> 6
    • assigned_to: hobbs --> dkf
     
  • Donal K. Fellows

    Logged In: YES
    user_id=79902

    Bleah, wrong quoting on a [trace] setup. (Seems to have been
    the last spot that wasn't correct).

    Fixed in HEAD and 8.4 branch. (Workaround is to not put
    spaces, or other Tcl-significant characters, in variable names).

     
  • Donal K. Fellows

    Logged In: YES
    user_id=79902

    err, that's _widget_ names. :-}

     
  • Donal K. Fellows

    • status: open --> closed-fixed