Man Scilab

TK_SetVar
Scilab Function

TK_SetVar - Set a tcl/tk variable value

Calling Sequence

TK_SetVar(varname, value)

Parameters

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).

Examples


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');

//destroy toplevel  TK window. 
TK_EvalStr('destroy .tst2')


 
  

See Also

ScilabEval ,   TK_EvalFile ,   TK_EvalStr ,   TK_GetVar ,  

Author

Bertrand Guiheneuf

Back