I’m using drag and drop in wxpython 4.0.0b1 under windows 10.
I created a subclass of wx.FileDropTarget and created my own method OnDropFiles but none of the tutorials I ran across indicate that I need to return a number from this function. However I get an error until I return a value so I assume this has changed? Can someone tell me what this return value is for?
The wxPython documentation doesn't indicate this, but if you go to the corresponding wxWidgets documentation[1], it notes that the return value is actually supposed to be a bool indicating whether to accept the data (true) or veto the operation (false).
[1] wxWidgets: wxFileDropTarget Class Reference
Scott
···
On Wed, 27 Sep 2017, Kevin Cutts wrote:
I'm using drag and drop in wxpython 4.0.0b1 under windows 10. I created a
subclass of wx.FileDropTarget and created my own method OnDropFiles but none
of the tutorials I ran across indicate that I need to return a number from
this function. However I get an error until I return a value so I assume
this has changed? Can someone tell me what this return value is for?