tkgui Function
Last update : 22/2/2006
tk_dialog - an interface allow editing matrices and
lists using the tk widgets
Calling Sequence
- result=tk_dialog(default_inputs)
- result=tk_dialog(labels,default_inputs)
- result=tk_dialog(title,labels,default_inputs)
- result=tk_dialog(title,labelsv,labelsh,default_inputs)
Parameters
-
title : column vector of strings, comment or title for the
dialog. Lines of multiple-lines title should be separated by \\n
or \\r.
-
default_input : n vector, matrix or list, default_inputs contain the initial
values of the input items.
-
labels : n column vector of strings, labels(i) is the label of the ith
required value.
-
labelsv : n vector of strings, labelsv(i) is the label of the ith row of
the dialog.
-
labelsh : m vector of strings, in case of a matrix, labelsh(j) is the
label of the jth column. Otherwise, it is not used.
-
result : an item of the same type and dimension of default_inputs. When
default_inputs is a vector or matrix, result will be a matrix of
the same size and data type if "Ok" button is pressed or
[] if "Cancel" button is pressed.When default_inputs is
a list or typed-list, result will be a similar list if
"Ok" is pressed or an empty list if "Cancel"
is pressed.
Description
A tksci interface for editing or inputing matrix and list.
Type tk_dialog() to see examples.
See Also
x_dialog, x_mdialog, x_matrix,