I tried looking everywhere, and can’t find a way to handle a drop from the OS. Trying to drop a texture from the desktop and get the path/info to load it consequently.
I might create a second window with QT or any other window management, but it would be awesome to keep it all Panda3d!
This is not supported in Panda out of the box, that I know of—it’s not something anyone has asked before. Maybe it’s possible by embedding Panda into another toolkit, I don’t know.
It would not be particularly difficult to extend the Panda source to do this. Code to catch this would need to be added to winGraphicsWindow.cxx, which should call the DragQueryFile API function to obtain a filename.
Thanks so much rbd! At least I know I was not missing a function that already existed. I am not too savvy to modify the P3D source code, but definitely would try at some point. Should I add it as a request to Github?