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

Class BooleanArg

source code


An argument that takes a true/false value.

The argument should be 0 or 1. The option is output to gnuplot as 'trueval' if the argument is true or 'falseval' if the argument is false. Either one can be 'None', in which case nothing is output. 'default' should also be 0 or 1.

Instance Methods [hide private]
 
__call__(self, keyw) source code
 
__init__(self, argname, trueval, falseval, fixedword=None, default=None) source code
    Inherited from ArgOneParam
 
get_option(self, keyw)
Get the keyword argument corresponding to this Arg.
source code
Method Details [hide private]

__init__(self, argname, trueval, falseval, fixedword=None, default=None)
(Constructor)

source code 
Overrides: ArgOneParam.__init__