class documentation
Project class.
Static Method | get |
Gets the default project. |
Method | __init__ |
Initializes the project class. |
Method | close |
Attempts to close the project, but lets user choose to cancel closing, or save/discard changes if there are any. |
Method | on |
Gets called when the project changed. |
Method | open |
Opens a project from file. |
Method | open |
Opens the default project. |
Method | switch |
Closes the current project and opens another project. |
Method | validate |
Validates the project. |
Instance Variable | gui |
Undocumented |
Inherited from Config
:
Method | cleanup |
Perform clean-up. |
Method | get |
Gets boolean value, convert from string. |
Method | get |
Gets float value, convert from string. |
Method | get |
Gets some "_key"-"_value" of data type "_type". |
Method | get |
Gets integer value, convert from string. |
Method | get |
Gets a single 3D point, convert from string. |
Method | get |
Gets list of 3D points, convert from string. |
Method | get |
Reads a configuration value. |
Method | load |
Loads the default configuration. |
Method | load |
Loads the configuration from file. |
Method | remove |
Removes a key from the configuration. |
Method | save |
Saves the configuration to file. |
Method | set |
Sets boolean value, convert to string. |
Method | set |
Sets float value, convert to string. |
Method | set |
Sets some "_key"-"_value" of data type "_type". |
Method | set |
If value is not None, writes and returns key-value; otherwise (if value is None), reads and returns key-value. |
Method | set |
If "values" is None, reads and returns all key-values in "types". Note: The actual keys saved in the configuration file are prefixed with "prefix", and suffixed with "suffix". |
Method | set |
If value is not None, writes and returns key-value; otherwise (if value is None), reads and returns key-value. |
Method | set |
If value is not None, writes and returns key-value; otherwise (if value is None), reads and returns key-value. |
Method | set |
If value is not None, writes and returns key-value; otherwise (if value is None), reads and returns key-value. |
Method | set |
If value is not None, writes and returns key-value; otherwise (if value is None), reads and returns key-value. |
Method | set |
If value is not None, writes and returns key-value; otherwise (if value is None), reads and returns key-value. |
Method | set |
Sets integer value, convert to string. |
Method | set |
Sets a single 3D point, convert to string. |
Method | set |
Sets list of 3D points, convert to string. |
Method | set |
Writes a configuration value. |
Class Variable |
|
Undocumented |
Instance Variable | filename |
Undocumented |
Instance Variable | synced |
Undocumented |
Instance Variable | _parser |
Undocumented |
Attempts to close the project, but lets user choose to cancel closing, or save/discard changes if there are any.
Parameters | |
invalidate:bool | Enable to invalidate the GUI afterwards |
Returns | |
bool | False if canceled, True if saved/discarded |