how to drop a file to a wxTextCtrl?

Hi,

If you drag a file name from a file manager to a text editor, the text
editor automatically opens the dragged file. I guess, this is a job for
wxFileDropTarget under wxPython.

But unfortunately, I cannot find the event name for it to launch the
actual dragging. I know there is wxDropFilesEvent class, but it works
only under win32, which is not my case.

So how do I implement this functionality under Linux, Mac?

If I drag a file name to a simple wxTextCtrl, it pastes the file name
into it.

thanks,

jan bodnar

Download the wxPython demo. Look at the "Clipboard and Dnd" ->
DragAndDrop demo.

- Josiah

ยทยทยท

jan bodnar <jan.bodnar@chello.sk> wrote:

Hi,

If you drag a file name from a file manager to a text editor, the text
editor automatically opens the dragged file. I guess, this is a job for
wxFileDropTarget under wxPython.

But unfortunately, I cannot find the event name for it to launch the
actual dragging. I know there is wxDropFilesEvent class, but it works
only under win32, which is not my case.