Package dics :: Module ptest :: Class ptest
[hide private]
[frames] | no frames]

Class ptest
source code

This exist purely to test the saving of status data back to the config file on exit so that status data is persistent.

Instance Methods [hide private]
  __init__(self, magic_number, name)
One argument.
  updateConfig(self, config)
This is the should be called when the instrument object is deleted.

Method Details [hide private]

__init__(self, magic_number, name)
(Constructor)

source code 
One argument. When initialised from the config file it'll receive a string, but we'll treat it as the string representation of an integer.

updateConfig(self, config)

source code 
This is the should be called when the instrument object is deleted. Takes a config object as argument, and attempts to set the magic_number option in the config.