1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
5
<TITLE>ScilabEval</TITLE>
6
<TYPE>TCL Function</TYPE>
7
<DATE> 04 June 1998</DATE>
8
<SHORT_DESCRIPTION name="ScilabEval"> tcl instruction : Evaluate a string with scilab interpreter</SHORT_DESCRIPTION>
12
<PARAM_NAME>o</PARAM_NAME>
14
<SP>str : tcl string character Contains the string to evaluate with the current scilab interpreter.</SP>
21
This function must be called in a tcl/tk script executed from scilab.
22
It allows to associate scilab actions to tcl/tk widgets (graphic
23
objects). The string str is put in the scilab interpreter buffer
24
which then evaluates it. This has in general no border effect in the
25
tcl/tk interpreter.</P>
29
//Create a Tcl script using ScilabEval
30
tcl_script=['toplevel .w1'
31
'button .w1.b -text ""Click here to see a new Scilab Graphic Window""\'
32
' -command {ScilabEval ""xselect()""}'
34
mputl(tcl_script,TMPDIR+'/test.tcl')
35
// Execute the tcl script
36
TK_EvalFile(TMPDIR+'/test.tcl')
41
<LINK>TK_EvalFile</LINK>
44
<LINK>TK_EvalStr</LINK>
47
<LINK>TK_GetVar</LINK>
50
<LINK>TK_SetVar</LINK>
53
<AUTHOR>Bertrand Guiheneuf</AUTHOR>