Last change
on this file since 69 was
69,
checked in by mmc, 19 years ago
|
Fixed the size of various widgets to request a smaller size,
so applications don't need to take up so much screen real estate.
Fixed the <string> entries to set their <default> value properly.
Added a new <separator> entry, which adds separation between
input controls.
Added a "zoo" of examples, showing little snippets of XML code.
|
File size:
1.0 KB
|
Line | |
---|
1 | <?xml version="1.0"?> |
---|
2 | <run> |
---|
3 | <tool> |
---|
4 | <title>choice</title> |
---|
5 | <about>Example of a Rappture <choice> object. |
---|
6 | |
---|
7 | Choices are a set of mutually exclusive options. |
---|
8 | The description appears in a tooltip when you hover over the choice control with your mouse. |
---|
9 | |
---|
10 | When you click the Simulate button, the input choice will be used to generate the output choice. An output choice is constant, just like a number, boolean, etc. |
---|
11 | </about> |
---|
12 | <command> |
---|
13 | tclsh @tool/choice.tcl @driver |
---|
14 | </command> |
---|
15 | </tool> |
---|
16 | <input> |
---|
17 | <choice id="stats"> |
---|
18 | <about> |
---|
19 | <label>Carrier Statistics</label> |
---|
20 | <description>Determines the model for carrier statistics used in bandgap narrowing calculations.</description> |
---|
21 | </about> |
---|
22 | <option> <about><label>Boltzmann</label></about> </option> |
---|
23 | <option> <about><label>Fermi</label></about> </option> |
---|
24 | <option> <about><label>2D Gas</label></about> </option> |
---|
25 | <default>Boltzmann</default> |
---|
26 | </choice> |
---|
27 | </input> |
---|
28 | <output> |
---|
29 | <choice id="outs"> |
---|
30 | <about><label>Echo of choice</label></about> |
---|
31 | </choice> |
---|
32 | </output> |
---|
33 | </run> |
---|
Note: See
TracBrowser
for help on using the repository browser.