Build on the standard property to allow a property to be locked if the holding class has its _locked attribute set to True
Definition at line 10 of file Utilities.py.
◆ lsetter()
| python.Utilities.lproperty.lsetter |
( |
| self, |
|
|
| func ) |
Definition at line 12 of file Utilities.py.
12 def lsetter(self, func):
13 def lockedfunc(self, v):
14 if self._locked:
15 raise Exception("Error "+func.__name__+" is locked. Either clone or unlock",self)
16 func(self,v)
17
18 return self.setter(lockedfunc)
19
◆ _locked
| python.Utilities.lproperty._locked |
|
protected |
The documentation for this class was generated from the following file: