Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File drag and drop support [Pyglet Only] #115

Merged
merged 1 commit into from
Oct 11, 2020
Merged

Conversation

EnigmaCurry
Copy link
Contributor

This implements file drag and drop support for the pyglet backend. Example code is found in examples/drag_drop_file_input.py. By implementing the files_dropped_event callback on the WindowConfig, you are able to perform an action when the user drags a file from their file manager over the top of the moderngl-window based app.

@EnigmaCurry EnigmaCurry marked this pull request as draft October 11, 2020 00:20
@einarf
Copy link
Member

einarf commented Oct 11, 2020

Looks sane. I'll merge it for now and play with it before new release 😄

@einarf einarf merged commit b303504 into moderngl:master Oct 11, 2020
@einarf
Copy link
Member

einarf commented Oct 11, 2020

Don't worry about the failed test. I will add to docs later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants