+class MyTextDropTarget(wxTextDropTarget):
+ def __init__(self, window, log):
+ wxTextDropTarget.__init__(self)
+ self.window = window
+ self.log = log
+
+ def OnDropText(self, x, y, text):
+ self.window.WriteText("(%d, %d)\n%s\n" % (x, y, text))
+
+ def OnDragOver(self, x, y, d):
+ return wxDragCopy
+