# HG changeset patch # User chewie@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1282226245 0 # Node ID 637384c8de04f5db5080a6e51dbc5beaf378fc84 # Parent fc5a781adf2a810fcc1b0d2919dff6ed2952bf4e - tested & applied Beliar's patch for the scrollarea widget - this closes ticket:477 Thanks for the contribution, have a save & productive day. diff -r fc5a781adf2a -r 637384c8de04 engine/python/fife/extensions/pychan/widgets/scrollarea.py --- 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)