Mercurial > fife-parpg
changeset 593:637384c8de04
- tested & applied Beliar's patch for the scrollarea widget
- this closes ticket:477
Thanks for the contribution, have a save & productive day.
author | chewie@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 19 Aug 2010 13:57:25 +0000 |
parents | fc5a781adf2a |
children | 5df831617b42 |
files | engine/python/fife/extensions/pychan/widgets/scrollarea.py |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/engine/python/fife/extensions/pychan/widgets/scrollarea.py Sat Aug 14 12:40:05 2010 +0000 +++ b/engine/python/fife/extensions/pychan/widgets/scrollarea.py Thu Aug 19 13:57:25 2010 +0000 @@ -105,5 +105,21 @@ self.content.width = max(self.content.width,self.width-5) self.content.height = max(self.content.height,self.height-5) + def getVerticalMaxScroll(self): + return self.real_widget.getVerticalMaxScroll() + def getHorizontalMaxScroll(self): + return self.real_widget.getHorizontalMaxScroll() + def _getHorizontalScrollAmount(self): + return self.real_widget.getHorizontalScrollAmount() + def _setHorizontalScrollAmount(self, scroll_amount): + return self.real_widget.setHorizontalScrollAmount(scroll_amount) + def _getVerticalScrollAmount(self): + return self.real_widget.getVerticalScrollAmount() + def _setVerticalScrollAmount(self, scroll_amount): + return self.real_widget.setVerticalScrollAmount(scroll_amount) + vertical_scrollbar = property(_getVerticalScrollbar,_setVerticalScrollbar) horizontal_scrollbar = property(_getHorizontalScrollbar,_setHorizontalScrollbar) + + horizontal_scroll_amount = property(_getHorizontalScrollAmount, _setHorizontalScrollAmount) + vertical_scroll_amount = property(_getVerticalScrollAmount, _setVerticalScrollAmount)