Esempio n. 1
0
 def persistedPropVal(self, name, setterName):
     # Unlike usual properties, SashPosition is persisted as a Split* method
     # Therefore it needs to check the Split* method for the source value
     if setterName == 'SetSashPosition':
         for prop in self.textPropList:
             if prop.prop_setter in ('SplitVertically', 'SplitHorizontally'):
                 return prop.params[2]
     return ContainerDTC.persistedPropVal(self, name, setterName)
Esempio n. 2
0
 def persistedPropVal(self, name, setterName):
     # Unlike usual properties, SashPosition is persisted as a Split* method
     # Therefore it needs to check the Split* method for the source value
     if setterName == 'SetSashPosition':
         for prop in self.textPropList:
             if prop.prop_setter in ('SplitVertically', 'SplitHorizontally'):
                 return prop.params[2]
     return ContainerDTC.persistedPropVal(self, name, setterName)