Package toon :: Module core :: Class Configuration
[hide private]
[frames] | no frames]

Class Configuration

source code

object --+
         |
        Configuration

Configuration options.

Default values are defined here. Overriden as **argd arguments to Toonloop(**argd)

Python allows commas at the end of lists and tuples

Instance Methods [hide private]
 
__init__(self, **argd)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
save(self)
Save to JSON config file.
source code
 
load(self)
Load from JSON config file.
source code
 
print_values(self) source code
 
set(self, name, value)
Casts to its type and sets the value.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **argd)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

save(self)

source code 

Save to JSON config file.

Uses self.config_file as a file to save to.

load(self)

source code 

Load from JSON config file.

Uses self.config_file as a file to load from.

set(self, name, value)

source code 

Casts to its type and sets the value.

Intended to be used even from ASCII string values. (FUDI, etc.)

A bool value can be set using 'True' or 1 and 'False' or 0