File: ScilabEval.man

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (47 lines) | stat: -rw-r--r-- 1,325 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.TH "ScilabEval" 2 " 04 June 1998" "Fractales Group" "Scilab Function"
.so ../sci.an
.SH NAME
ScilabEval - tcl instruction : Evaluate a string with scilab interpreter
.sp
Author: Bertrand Guiheneuf
.sp
This routine is used inside tcl/tk script executed from scilab. It allows to evaluate any string from the scilab interpreter.
It's mainly used to execute callbacks from tk widgets.
.sp
.sp
.SH Usage
ScilabEval str
.SH Input parameter
.nr ll +1
.nr t\n(ll 0
.if \n(ll>1 .RS
.nr bi 1
.TP
o 
\fB\fPstr : tcl string character
Contains the string to evaluate with the current scilab interpreter. 
.if \n(ll>1 .RE
.nr ll -1
.SH Output parameters
None
.SH Description
This function must be called in a tcl/tk script executed from scilab.
It allows to associate scilab actions to tcl/tk widgets (graphic
objects).  The string str is put in the scilab interpreter buffer
which then evaluates it.  This has in general no border effect in the
tcl/tk interpreter.
.SH Example (tcl/tk script)
.nf
# this text must be saved into a file, for instance 
#  '/tmp/test.tcl'
# then launch scilab and type TK_EvalFile('/tmp/test.tcl');
toplevel .w1
button .w1.b -text "Click here to see a new Scilab Graphic Window"\
  -command {ScilabEval "xselect()"}
pack .w1.b 
.fi 
.ec
.ft P
.sp
.SH See also
TK_EvalFile, TK_EvalStr, TK_GetVar, TK_Setvar