1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
5
<TITLE>TK_EvalStr</TITLE>
6
<TYPE>Scilab Function</TYPE>
7
<DATE> 04 June 1998</DATE>
8
<SHORT_DESCRIPTION name="TK_EvalStr"> Evaluate a string whithin the tcl/tk interpreter</SHORT_DESCRIPTION>
10
<CALLING_SEQUENCE_ITEM>TK_EvalStr(str) </CALLING_SEQUENCE_ITEM>
15
<PARAM_NAME>str</PARAM_NAME>
17
<SP>: string or vector of strings, contains the tcl/tk instructions</SP>
24
This routine allows to evaluate tcl/tk instructions with the tcl/tk
25
interpreter launched with scilab.</P>
27
When tcl/tk support is enabled in scilab, you can evaluate tcl/tk expression
28
from scilab interpreter. In fact, scilab launches a slave tcl/tk interpreter.
29
The scilab instruction <VERB>TK_EvalStr()</VERB> can be used to evaluate expression
30
without having to write a tcl/tk in a separated file (this is done using
36
TK_EvalStr(['toplevel .foo1'
37
'label .foo1.l -text ""TK married Scilab !!!""'
39
'button .foo1.b -text close -command {destroy .foo1}'
42
//step by step (debugging)
43
TK_EvalStr('toplevel .foo2');
44
// creates a toplevel TK window.
45
TK_EvalStr('label .foo2.l -text ""TK married Scilab !!!""');
46
// create a static label
47
TK_EvalStr('pack .foo2.l');
48
// pack the label widget. It appears on the screen.
49
text='button .foo2.b -text close -command {destroy .foo2}';
51
TK_EvalStr('pack .foo2.b');
53
//kill the windows by program
54
TK_EvalStr('destroy .foo1');
55
TK_EvalStr('destroy .foo2');
60
<LINK>ScilabEval</LINK>
63
<LINK>TK_EvalFile</LINK>
66
<LINK>TK_GetVar</LINK>
69
<LINK>TK_SetVar</LINK>
72
<AUTHOR>Bertrand Guiheneuf</AUTHOR>