Package PyFoam :: Package ThirdParty :: Package Gnuplot :: Module termdefs :: Class ArgOneParam
[hide private]
[frames] | no frames]

Class ArgOneParam

source code

Arg --+
      |
     ArgOneParam

Arg abstract base class specialized for exactly one parameter.

Members:

    'argname' -- The name of the keyword argument used to pass
        this argument to Python.

    'default' -- The default value of the argument, used if no
        keyword parameter is found.  If this is None, then no
        default is assumed.

Instance Methods [hide private]
 
__init__(self, argname, default) source code
 
get_option(self, keyw)
Get the keyword argument corresponding to this Arg.
source code
Method Details [hide private]

get_option(self, keyw)

source code 

Get the keyword argument corresponding to this Arg.

Look in keyw for the keyword argument needed by this Arg. If it is found, delete it from keyw and return it. If it is not found, return self.default.