Re: Proposed Patch: Drag and Drop support for Windows

46 views
Skip to first unread message

Richard Jones

unread,
Dec 3, 2012, 9:45:52 PM12/3/12
to pyglet-users, jacob....@garmin.com
The feature really needs support across all three platforms to be committed.

Is anyone able to comment on the OS X side of things for this?


Richard

On 30 November 2012 04:11, Jacob Gardner <jacob.v...@gmail.com> wrote:
> I've made a small patch which uses WM_DROPFILES to trigger an on_file_drop
> event with the file list and x, y position.
>
> Patch is here:
> http://code.google.com/p/pyglet/issues/detail?id=620&colspec=ID%20Stars%20StatusType%20OpSys%20Modified%20Summary
>
> Or you can get it from here:
> http://code.google.com/r/jacobvgardner-pyglet/
>
> I've never used mercurial before (git user) so the patch might be in the
> wrong format.
>
> I should have drag and drop working for x11 by the end of the night using
> the XDND protocol. I don't have a mac so I will not be able to write the
> patch for Carbon/Cocoa support.
>
> This should be useful for those who wish to accept file input but don't want
> to write the logic for a file open dialog of some sort or simply want to
> give their users more options.
>
> Let me know
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "pyglet-users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pyglet-users/-/-7cllciLkUUJ.
> To post to this group, send email to pyglet...@googlegroups.com.
> To unsubscribe from this group, send email to
> pyglet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pyglet-users?hl=en.

Nathan

unread,
Dec 7, 2012, 1:11:01 PM12/7/12
to pyglet...@googlegroups.com
I'd welcome the feature.  I don't yet know enough Cocoa to figure out how to implement it myself, though.

~ Nathan

Richard Jones

unread,
Dec 7, 2012, 5:33:44 PM12/7/12
to pyglet-users

I recall implementing it for Carbon but I don't have the experience with Cocoa at this point.

Sent from my portable device, please excuse the brevity.

Reply all
Reply to author
Forward
0 new messages