Since this window draws its own background, set the custom bg style.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2f8102974b
commit
e1cceb75f0
@ -47,6 +47,7 @@ class DragCanvas(wx.ScrolledWindow):
|
|||||||
|
|
||||||
self.SetCursor(wx.StockCursor(wx.CURSOR_ARROW))
|
self.SetCursor(wx.StockCursor(wx.CURSOR_ARROW))
|
||||||
self.bg_bmp = images.getBackgroundBitmap()
|
self.bg_bmp = images.getBackgroundBitmap()
|
||||||
|
self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM)
|
||||||
|
|
||||||
# Make a shape from an image and mask. This one will demo
|
# Make a shape from an image and mask. This one will demo
|
||||||
# dragging outside the window
|
# dragging outside the window
|
||||||
|
Loading…
Reference in New Issue
Block a user