File: TK_SetVar.cat

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 (35 lines) | stat: -rw-r--r-- 1,099 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

TK_SetVar(2)                   Scilab Function                   TK_SetVar(2)
NAME
  TK_SetVar - Set a tcl/tk variable value

  Author: Bertrand Guiheneuf

  This routine allows to set a variable within the tcl/tk interpreter.

Usage
  TK_SetVar(varname, value)

Input parameter

  o    varname : string character Contains the name of the tcl/tk variable to
       set.

  o    value : string character Contains the value to set up in the tcl/tk
       variable

Output parameters
  None

Description
  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 .foo'); // creates a toplevel TK window.
  TK_EvalStr('label .foo.l -textvariable tvar'); // create a static label
  TK_EvalStr('pack .foo.l'); // pack the label widget. It appears on the
  screen.  TK_SetVar('tvar','This text has been set directly within
  scilab');.SH See also ScilabEval, TK_EvalFile, TK_EvalStr, TK_GetVar