Classes | |
| class | Singleton |
| Class used with this Python singleton design pattern. More... | |
Public Member Functions | |
| def | __init__ |
| The constructor. | |
| def | __getattr__ |
| Delegate access to implementation. | |
| def | __setattr__ |
| Delegate access to implementation. | |
| def PyFrame::Registry::Registry::__getattr__ | ( | self, | ||
| aAttr | ||||
| ) |
Delegate access to implementation.
| self | The object pointer. | |
| attr | Attribute wanted. |
00031 : 00032 return getattr(self._iInstance, aAttr) 00033 ## Delegate access to implementation.
| def PyFrame::Registry::Registry::__init__ | ( | self | ) |
The constructor.
| self | The object pointer. |
00017 : 00018 # Check whether we already have an instance 00019 if Registry._iInstance is None: 00020 # Create and remember instanc 00021 Registry._iInstance = Registry.Singleton() 00022 00023 # Store instance reference as the only member in the handle 00024 self.__dict__['_EventHandler_instance'] = Registry._iInstance 00025 00026 ## Delegate access to implementation.
| def PyFrame::Registry::Registry::__setattr__ | ( | self, | ||
| aAttr, | ||||
| aValue | ||||
| ) |
Delegate access to implementation.
| self | The object pointer. | |
| attr | Attribute wanted. | |
| value | Vaule to be set. |
00039 : 00040 return setattr(self._iInstance, aAttr, aValue) return setattr(self._iInstance, aAttr, aValue)
1.5.8