Hi,
I'm trying to do a SetDropTarget on a wxListCtrl, but no luck!
...
dropTarget = FileDropTarget(self.fileList)
self.fileList.SetDropTarget(dropTarget)
...
class FileDropTarget(wxFileDropTarget):
def __init__(self, parent):
wxFileDropTarget.__init__(self)
self.parent = parent
def OnDropFiles(self, x, y, filenames):
self.parent.SetInsertionPointEnd()
for file in filenames:
n = self.parent.GetItemCount()
self.parent.InsertStringItem(n, file)
I have been looking in the wx demo.....
Tnx
Holmis
···
From my code: