source: branches/multichoice/examples/zoo/multichoice/tool.xml @ 6251

Last change on this file since 6251 was 6251, checked in by dkearney, 8 years ago

adding a new multichoice widget. similar to a choice widget, but the choices are not mutually exclusive.

File size: 1.2 KB
Line 
1<?xml version="1.0"?>
2<run>
3<tool>
4  <title>multichoice</title>
5  <about>Example of a Rappture &lt;multichoice&gt; object.
6
7MultiChoices are a set of combinable options.
8The description appears in a tooltip when you hover over the choice control with your mouse.
9
10When you click the Simulate button, the input choices will be used to generate the output choices.  An output multichoice is constant, just like a number, boolean, etc.
11  </about>
12  <command>
13    tclsh @tool/multichoice.tcl @driver
14  </command>
15</tool>
16<input>
17  <multichoice id="countries">
18    <about>
19      <label>African Countries</label>
20      <description>Choose the countries to analyze.</description>
21    </about>
22    <option>
23      <about>
24        <label>South Africa</label>
25        <description>South Africa</description>
26      </about>
27      <value>ZAF</value>
28    </option>
29    <option>
30      <about>
31        <label>Zimbabwe</label>
32        <description>Zimbabwe</description>
33      </about>
34      <value>ZWE</value>
35    </option>
36    <option>
37      <about>
38        <label>Swaziland</label>
39        <description>Swaziland</description>
40      </about>
41      <value>SWZ</value>
42    </option>
43    <default>Zimbabwe</default>
44  </multichoice>
45</input>
46</run>
Note: See TracBrowser for help on using the repository browser.