Mercurial > fife-parpg
comparison engine/extensions/pychan/widgets.py @ 159:c305c5eda7ed
Fix for scrollarea bug.
author | phoku@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Tue, 14 Oct 2008 08:30:20 +0000 |
parents | 63de2dea08e6 |
children | 5b04a7d3ded6 |
comparison
equal
deleted
inserted
replaced
158:63de2dea08e6 | 159:c305c5eda7ed |
---|---|
1544 self._content = content | 1544 self._content = content |
1545 def _getContent(self): return self._content | 1545 def _getContent(self): return self._content |
1546 content = property(_getContent,_setContent) | 1546 content = property(_getContent,_setContent) |
1547 | 1547 |
1548 def deepApply(self,visitorFunc): | 1548 def deepApply(self,visitorFunc): |
1549 if self._content: visitorFunc(self._content) | 1549 if self._content: self._content.deepApply(visitorFunc) |
1550 visitorFunc(self) | 1550 visitorFunc(self) |
1551 | 1551 |
1552 def resizeToContent(self,recurse=True): | 1552 def resizeToContent(self,recurse=True): |
1553 if self._content is None: return | 1553 if self._content is None: return |
1554 if recurse: | 1554 if recurse: |