X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fa876ca9ec87e90605808bfcab4d4226965dbad..dae0faa6be08c5bb5635fd464b695ac8bb8f2b8d:/wxPython/demo/wxDragImage.py diff --git a/wxPython/demo/wxDragImage.py b/wxPython/demo/wxDragImage.py index 4b1764743f..ad8f880a5d 100644 --- a/wxPython/demo/wxDragImage.py +++ b/wxPython/demo/wxDragImage.py @@ -29,7 +29,7 @@ class DragShape: memDC = wx.MemoryDC() memDC.SelectObject(self.bmp) - dc.Blit((self.pos.x, self.pos.y), + dc.Blit((self.pos[0], self.pos[1]), (self.bmp.GetWidth(), self.bmp.GetHeight()), memDC, (0, 0), op, True) @@ -77,8 +77,8 @@ class DragCanvas(wx.ScrolledWindow): dc.SetTextForeground(wx.RED) dc.SetFont(font) dc.DrawText(text, (0, 0)) - dc.SelectObject(wxNullBitmap) - mask = wxMaskColour(bmp, bg_colour) + dc.SelectObject(wx.NullBitmap) + mask = wx.MaskColour(bmp, bg_colour) bmp.SetMask(mask) shape = DragShape(bmp) shape.pos = (5, 100)