Put changes back in which seogi reversed. Changed dependent property.

This commit is contained in:
rowanc1
2014-05-02 12:02:46 -07:00
parent b9b5bc9bc9
commit d8863c7c4c
5 changed files with 79 additions and 11 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ def callHooks(match, mainFirst=False):
def dependentProperty(name, value, children, doc):
def fget(self): return getattr(self,name,value)
def fset(self, val):
if isScalar(val) and getattr(self,name,value) == val:
if (isScalar(val) and getattr(self,name,value) == val) or val is getattr(self,name,value):
return # it is the same!
for child in children:
if hasattr(self, child):