File: TK_SetVar.cat

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (34 lines) | stat: -rw-r--r-- 1,104 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
TK_SetVar         Fractales Group         Scilab Function         TK_SetVar
NAME
   TK_SetVar - Set a tcl/tk variable value
  
CALLING SEQUENCE
 TK_SetVar(varname, value)
PARAMETERS
 varname  : string character Contains the name of the tcl/tk variable to
          set.
          
 value    : string character Contains the value to set up in the tcl/tk
          variable 
          
DESCRIPTION
   This routine allows to set a variable within the tcl/tk interpreter. 
  When tcl/tk support is enabled in scilab, this routine can be used to set
  up the value of a tcl/tk variable. This can be useful to change some
  value in the tcl/tk without having to build a tcl/tk instruction (and use
  TK_EvalStr).
  
EXAMPLE
 TK_EvalStr('toplevel .tst2');
 // creates a toplevel TK window. 
 TK_EvalStr('label .tst2.l -textvariable tvar');
 // create a static label
 TK_EvalStr('pack .tst2.l');
 // pack the label widget. It appears on the screen.
 TK_SetVar('tvar','This text has been set directly within scilab');
AUTHOR
   Bertrand Guiheneuf 
  
SEE ALSO
   ScilabEval, TK_EvalFile, TK_EvalStr, TK_GetVar