However, when I replicate that example and use it in the demo code instead of its CustomDataObject and DataObjectComposite, the call self.GetData() fails to copy anything from the DropSource object to the DropTarget. The cursor performs as expected, switching its appearance on entry to the target box, and as far as I can see from examining the format IDs, the source and target objects match.
The documentation is pretty clear that in order to overload functions effectively you need to use PyDataObjectSimple.
However, when I replicate that example and use it in the demo code instead of its CustomDataObject and DataObjectComposite, the call self.GetData() fails to copy anything from the DropSource object to the DropTarget. The cursor performs as expected, switching its appearance on entry to the target box, and as far as I can see from examining the format IDs, the source and target objects match.
Can you send me your version of the code to test with? Also, what platform are you on?
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!