tk_choices           Jan 2001           Ying-Wan Lam           tkgui Function

NAME

tk_choices - tk dialog allowing multiple choices

CALLING SEQUENCE


rep=tk_choices(title,labels,choices,defaults,align)
rep=tk_choices(title,labels,choices,defaults)
rep=tk_choices(title,labels,choices)
rep=tk_choices(title,choices)
rep=tk_choices(choices)

PARAMETERS

DESCRIPTION

Similar to tk_choose. But this dialog allow multiple choices at the same time using radio buttons. Selections are returned in rep as the number of the selected items. Type tk_choices() to see examples.

EXAMPLE


r1=['toggle c1','toggle c2','toggle c3'];
r2=['toggle d1','toggle d2','toggle d3'];
r3=['toggle e1','toggle e2'];
rep=tk_choices(list(r1,r2,r3));
rep=tk_choices('toggle menu', list(r1,r2,r3));
rep=tk_choices('toggle menu', ['row 1','row 2','row 3'], ...
 list(r1,r2,r3), [1,1,1] %f);

SEE ALSO


x_choices, tk_choices1