[Brains-users] Brains2: Toolbar TCL scripts

Eugene Zeien eugene-zeien at uiowa.edu
Mon Nov 20 09:10:19 PST 2006


Can you tell me which versions of 'tcl' and 'tk' you are using?
We are using version 8.4, although the segment of code you reference
has not changed substantially in nearly 2 years.  In fact, it looks
very similar to code found here:
src.opensolaris.org/source/xref/sfw/usr/src/lib/tk/tk8.3.3/library/tkfbox.tcl

$ rpm -qa | grep '^tk'
tkinter-2.3.4-14.3
tk-8.4.7-2
tk-devel-8.4.7-2

$ rpm -qa | grep '^tcl'
tcl-8.4.7-2
tclx-devel-8.3.5-4
tcl-devel-8.4.7-2
tclx-8.3.5-4
tclx-doc-8.3.5-4
tcl-html-8.4.7-2

Thanks,
gene

Flavio wrote:
> Brains Users,
> 
>  
> 
> I’ve got the RedHatEnterpriseWS4 rpm pre-built package.
> 
>  
> 
> When I try loading an image through Brains2 toolbar, I’ve got a following
> window error message:
> 
>  
> 
> expected floating-point number but got "0.0"
> 
> expected floating-point number but got "0.0"
> 
>     while executing
> 
> "$icons(sbar) set 0.0 0.0"
> 
>     (procedure "::ipltk::dialog::file::SetFilter" line 30)
> 
>     invoked from within
> 
> "::ipltk::dialog::file::SetFilter $w [lindex $data(-filetypes) 0]"
> 
>     (procedure "::ipltk::dialog::file::" line 106)
> 
>     invoked from within
> 
> "::ipltk::dialog::file:: Image open -filetypes {
> 
>               { { IMG Files } { .hdr } }
> 
>               { { NIFTI Files } { .nii* } }
> 
>               { { PIC Files } { ..."
> 
>     ("eval" body line 1)
> 
>     invoked from within
> 
> "eval ::ipltk::dialog::file:: $listType open $args"
> 
>     (procedure "ipltk_getOpenFile" line 2)
> 
>     invoked from within
> 
> "ipltk_getOpenFile $load_type -filetypes $types -initialdir $showInitDir
> -title "Open $load_type""
> 
>     (procedure "dialog_load" line 123)
> 
>     invoked from within
> 
> "dialog_load Image"
> 
>     invoked from within
> 
> ".file.menu.load invoke active"
> 
>     ("uplevel" body line 1)
> 
>     invoked from within
> 
> "uplevel #0 [list $w invoke active]"
> 
>     (procedure "tk::MenuInvoke" line 50)
> 
>     invoked from within
> 
> "tk::MenuInvoke .file.menu.load 1"
> 
>     (command bound to event)
> 
>  
> 
> I would appreciate some suggestions as to resolving this problem.
> 
>  
> 
> I have had some problems with Brains2 TCL scripts. Is there any doubt?
> 
>  
> 
> Thank,
> 
> Flávio.
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Brains-users mailing list
> Brains-users at www.psychiatry.uiowa.edu
> http://www.psychiatry.uiowa.edu/mailman/listinfo/brains-users




More information about the Brains-users mailing list