Package toon :: Module optgroup :: Class OptionsGroup
[hide private]
[frames] | no frames]

Class OptionsGroup

source code

object --+
         |
        OptionsGroup
Known Subclasses:

Its attributes are the its option names and values.

Instance Methods [hide private]
 
set_value(self, option_name, value)
Sets a value of an option.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

set_value(self, option_name, value)

source code 

Sets a value of an option.

If value is a string, it will be casted to the type of the option to be set. If the option is a tuple of 4 floats, for example, it will be expected to in the form "1.0,0.8,0.2,1.0" where "," is the separator.

:param option_name: Name of the attribute :param value: Either a string, or any Python type.