Table of Contents

Class: InputPrmCGI py4cs/ParameterInterface.py

Represent a parameter by a form variable in HTML.

Base Classes   
InputPrm
Methods   
__init__
__repr__
get
make_form_entry
  __init__ 
__init__ (
        self,
        name=None,
        default=0.0,
        str2type=None,
        widget_type='entry',
        values=None,
        form=None,
        help=None,
        unit=None,
        cmlarg=None,
        )

default default value str2type function from string to type name name of parameter widget_type entry, slider, option, checkbutton values option values form cgi.FieldStorage object help description of parameter unit physical unit (dimension) cmlarg command-line argument for sending this prm to an external program

  __repr__ 
__repr__ ( self )

Application of eval to this output creates the object.

  get 
get ( self )

  make_form_entry 
make_form_entry ( self )

Write the form's input field, according to widget_type.

Exceptions   
TypeError, "name attribute must be set before " "widget can be created"
TypeError, "values attribute must be set for option menu '%s'" % self.name

Table of Contents

This document was automatically generated on Sun Mar 14 15:31:01 2004 by HappyDoc version 2.1