Package gui :: Module uf_objects :: Class Uf_storage
[hide private]
[frames] | no frames]

Class Uf_storage

source code


A singleton container for holding all the GUI user functions.

Instance Methods [hide private]
a new object with type S, a subtype of T
__new__(self, *args, **kargs)
Replacement method for implementing the singleton design pattern.
source code
str
get_uf(self, id=0)
Return the name of the user function corresponding to the given wx ID.
source code

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __init__, __iter__, __le__, __len__, __lt__, __ne__, __repr__, __setitem__, __sizeof__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values, viewitems, viewkeys, viewvalues

Class Variables [hide private]
  _instance = None

Inherited from dict: __hash__

Method Details [hide private]

__new__(self, *args, **kargs)

source code 

Replacement method for implementing the singleton design pattern.

Returns: a new object with type S, a subtype of T
Overrides: dict.__new__

get_uf(self, id=0)

source code 

Return the name of the user function corresponding to the given wx ID.

Parameters:
  • id (int) - The unique wx ID number.
Returns: str
The name of the user function.