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

Class BooleanArg

source code

    Arg --+    
          |    
ArgOneParam --+
              |
             BooleanArg

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]
 
__init__(self, argname, trueval, falseval, fixedword=None, default=None) source code
 
__call__(self, keyw) source code

Inherited from ArgOneParam: get_option

Method Details [hide private]

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

source code 
Overrides: ArgOneParam.__init__