From 287501a4f8b5825f99bd98743c062f02d8363269 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 2 Aug 2016 13:06:00 -0700 Subject: [PATCH] Return True from the drop methods that need it. --- demo/DragAndDrop.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demo/DragAndDrop.py b/demo/DragAndDrop.py index 2fdb41bd..297a27fe 100644 --- a/demo/DragAndDrop.py +++ b/demo/DragAndDrop.py @@ -134,9 +134,9 @@ class MyFileDropTarget(wx.FileDropTarget): self.window.SetInsertionPointEnd() self.window.WriteText("\n%d file(s) dropped at %d,%d:\n" % (len(filenames), x, y)) - for file in filenames: self.window.WriteText(file + '\n') + return True class MyTextDropTarget(wx.TextDropTarget): @@ -147,6 +147,7 @@ class MyTextDropTarget(wx.TextDropTarget): def OnDropText(self, x, y, text): self.window.WriteText("(%d, %d)\n%s\n" % (x, y, text)) + return True def OnDragOver(self, x, y, d): return wx.DragCopy