From 8793725c62b1310d8fc25bd0fb04847d1f2af1e6 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 9 Mar 2005 22:30:18 +0000 Subject: [PATCH] User newer APIs for setting up scrolling git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/ScrolledWindow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wxPython/demo/ScrolledWindow.py b/wxPython/demo/ScrolledWindow.py index df7dd63172..ac36542551 100644 --- a/wxPython/demo/ScrolledWindow.py +++ b/wxPython/demo/ScrolledWindow.py @@ -24,7 +24,8 @@ class MyCanvas(wx.ScrolledWindow): bmp.SetMask(mask) self.bmp = bmp - self.SetScrollbars(20, 20, self.maxWidth/20, self.maxHeight/20) + self.SetVirtualSize((self.maxWidth, self.maxHeight)) + self.SetScrollRate(20,20) if BUFFERED: # Initialize the buffer bitmap. No real DC is needed at this point. -- 2.50.0