Changeset 261
- Timestamp:
- 08/03/02 00:54:10 (6 years ago)
- Files:
-
- trunk/RBSkinning/RBSkinning/SkinObject.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/RBSkinning/RBSkinning/SkinObject.py
r253 r261 91 91 92 92 def PushContext(self, force=0): 93 """Returns the replaced context""" 93 """Adds a context to the stack, if needed or forced. 94 Returns the resultant context.""" 94 95 result = self.context 95 96 if force or (self.parent() and self.parent().context is self.context): 96 97 self.context = SkinContext.SkinContext(self.context) 98 return result 99 100 def PopContext(self, force=0): 101 """Removes a context from the stack if owned or forced. 102 Returns the resultant context.""" 103 result = self.context 104 if force or (self.parent() and self.parent().context is not self.context): 105 self.context = self.context._NextContext 97 106 return result 98 107
