Table of Contents

Class: InputPrmGUI py4cs/ParameterInterface.py

Represent an input parameter by a widget.

Base Classes   
InputPrm
Methods   
__init__
__repr__
get
get_widget_type
make_widget
set
  __init__ 
__init__ (
        self,
        name=None,
        default=0.0,
        str2type=None,
        widget_type='entry',
        values=None,
        parent=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 (min,max) interval or options parent parent widget 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 )

Get GUI text/number, handle special input like numbers with units, if necessary.

  get_widget_type 
get_widget_type ( self )

  make_widget 
make_widget ( self )

Make Tk widget according to self._widget_type.

Exceptions   
TypeError, "name attribute must be set before " "widget can be created"
TypeError, "parent attribute must be set before " "widget can be created"
TypeError, "values attribute must be list or tuple"
TypeError, "values attribute must be set for option menu '%s'" % self.name
TypeError, "values attribute must be set for slider '%s'" % self.name
  set 
set ( self,  value )


Table of Contents

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