Choice Input Example ==================== Location: ``examples/webapp/choice/`` This example demonstrates the ```` input type -- a dropdown selector for mutually exclusive options. tool.xml -------- .. code-block:: xml choice (rappture2web) python3 @tool/choice.py @driver Model for carrier statistics in bandgap narrowing. Boltzmann Script ------ .. code-block:: python import sys import rappture2web.rp_library as Rappture rx = Rappture.PyXml(sys.argv[1]) stats = rx['input.choice(stats).current'].value rx['output.string(out).about.label'] = 'Selected carrier statistics' rx['output.string(out).current'] = 'Carrier Statistics: %s' % stats rx.close() Key concepts ------------ - Each ``