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

Class KeywordArg

source code

    Arg --+    
          |    
ArgOneParam --+
              |
             KeywordArg

Represent an argument that must be passed as a keyword to gnuplot.

Some gnuplot options take the form of single unquoted keywords
(possibly preceded by a fixed keyword).  We allow those to be
passed as strings 'option="keyword"'.  Check that the option
supplied is in the list of allowed options.

Members:

    'fixedword' -- the fixed keyword that must precede the
        variable keyword in the gnuplot command, or None if none
        is required.

    'options' -- a list of strings containing the legal
        alternatives for this argument.

Instance Methods [hide private]
 
__init__(self, argname, options, fixedword=None, default=None) source code
 
__call__(self, keyw) source code

Inherited from ArgOneParam: get_option

Method Details [hide private]

__init__(self, argname, options, fixedword=None, default=None)
(Constructor)

source code 
Overrides: ArgOneParam.__init__