Package gnue :: Package common :: Package apps :: Module RuntimeSettings
[show private | hide private]

Module gnue.common.apps.RuntimeSettings

Saves the state of designer between runs. Saves such data as window positions, size, visibility, etc.
Function Summary
  get(section, setting, default)
  getint(section, setting, default)
  init(configFilename, homeConfigDir)
Determine which config file to use, open and read it's contents.
  registerInstance(instance)
  registerRuntimeSettingHandler(instance, object)
Any object (class) that has settings it wants saved should register with this method.
  saveRuntimeSettings(instance)

Function Details

get(section, setting, default)

getint(section, setting, default)

init(configFilename='default.ini', homeConfigDir='.gnue')

Determine which config file to use, open and read it's contents. As a side effect the module globals 'location' and 'config' are set, where location is the path to the config file being used and config is a ConfigParser instance used for reading/writing the settings.

registerInstance(instance)

registerRuntimeSettingHandler(instance, object)

Any object (class) that has settings it wants saved should register with this method. The object should define a getRuntimeSettings() method.

saveRuntimeSettings(instance)



GNUe Home

Private API

Developer's Corner