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

[Feat]: Enable dragging a file from Windows Explorer to a file input field #570

Open
O-J1 opened this issue Nov 17, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@O-J1
Copy link
Collaborator

O-J1 commented Nov 17, 2024

Describe your use-case.

Transferred request from discord: I want to drag a file into an input field and it inserts the file path as text. Low priority request though.

What would you like to see as a solution?

Dragging into a field works.

Have you considered alternatives? List them here.

N/A

@O-J1 O-J1 added the enhancement New feature or request label Nov 17, 2024
@Arcitec
Copy link
Contributor

Arcitec commented Nov 18, 2024

This is probably pretty easy, as long as we can register a "file drag receive" handler. It's most likely possible in TkInter.

Then we catch the path, and insert it into the focused field (or even the field the drop ended at, if this information is available to us).

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

No branches or pull requests

2 participants