Hello everyone,
I am trying to implement dnd on my wx.TreeCtrl.
Using the examples from the demos and the dnd overview in the docs, I
have set my TreeCtrl up to send text data, or to receive text data. I
can also set it up to receive file names using wx.FileDropTarget.
How can I accept both files and text? I tried to create a
class TextFileDropTarget(wx.TextDropTarget, wx.FileDropTarget):
....
with OnFilesDrop and OnTextDrop functions. However, only the first
target will be used, i.e. the above will only accept text while
class TextFileDropTarget(wx.FileDropTarget, wx.TextDropTarget):
....
accepts only files. Is there any way to accept both?
Niklas.