~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/eng/tksci/TK_EvalStr.xml

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
 
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
 
3
<MAN>
 
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>
 
9
  <CALLING_SEQUENCE>
 
10
    <CALLING_SEQUENCE_ITEM>TK_EvalStr(str)  </CALLING_SEQUENCE_ITEM>
 
11
  </CALLING_SEQUENCE>
 
12
  <PARAM>
 
13
    <PARAM_INDENT>
 
14
      <PARAM_ITEM>
 
15
        <PARAM_NAME>str</PARAM_NAME>
 
16
        <PARAM_DESCRIPTION>
 
17
          <SP>: string or vector of strings, contains the tcl/tk instructions</SP>
 
18
        </PARAM_DESCRIPTION>
 
19
      </PARAM_ITEM>
 
20
    </PARAM_INDENT>
 
21
  </PARAM>
 
22
  <DESCRIPTION>
 
23
    <P>
 
24
    This routine allows to evaluate tcl/tk  instructions with the tcl/tk
 
25
    interpreter launched with scilab.</P>
 
26
    <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 
 
31
    TK_EvalFile).</P>
 
32
  </DESCRIPTION>
 
33
  <EXAMPLE>
 
34
<![CDATA[
 
35
//with one call
 
36
TK_EvalStr(['toplevel .foo1'
 
37
   'label .foo1.l -text ""TK married Scilab !!!""'
 
38
   'pack .foo1.l'
 
39
   'button .foo1.b -text close -command {destroy .foo1}'
 
40
   'pack .foo1.b'])
 
41
 
 
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}';
 
50
TK_EvalStr(text);
 
51
TK_EvalStr('pack .foo2.b');
 
52
 
 
53
//kill the windows by program
 
54
TK_EvalStr('destroy .foo1');
 
55
TK_EvalStr('destroy .foo2');
 
56
 ]]>
 
57
  </EXAMPLE>
 
58
  <SEE_ALSO>
 
59
    <SEE_ALSO_ITEM>
 
60
      <LINK>ScilabEval</LINK>
 
61
    </SEE_ALSO_ITEM>
 
62
    <SEE_ALSO_ITEM>
 
63
      <LINK>TK_EvalFile</LINK>
 
64
    </SEE_ALSO_ITEM>
 
65
    <SEE_ALSO_ITEM>
 
66
      <LINK>TK_GetVar</LINK>
 
67
    </SEE_ALSO_ITEM>
 
68
    <SEE_ALSO_ITEM>
 
69
      <LINK>TK_SetVar</LINK>
 
70
    </SEE_ALSO_ITEM>
 
71
  </SEE_ALSO>
 
72
  <AUTHOR>Bertrand Guiheneuf</AUTHOR>
 
73
</MAN>