projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Applied patch [ 1407318 ] bitmap clipping / transparency mask (X11 port)
[wxWidgets.git]
/
wxPython
/
demo
/
ScrolledWindow.py
diff --git
a/wxPython/demo/ScrolledWindow.py
b/wxPython/demo/ScrolledWindow.py
index df7dd6317246a9f3c43ca904f9943a7a3ac8aabf..ac3654255175c831ff1f24bcc703b1566a2ae634 100644
(file)
--- a/
wxPython/demo/ScrolledWindow.py
+++ b/
wxPython/demo/ScrolledWindow.py
@@
-24,7
+24,8
@@
class MyCanvas(wx.ScrolledWindow):
bmp.SetMask(mask)
self.bmp = bmp
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.
if BUFFERED:
# Initialize the buffer bitmap. No real DC is needed at this point.