Get the full path of a local file from drop area in native NiceGUI app using pywebview's js_api #4744
NewComer00
started this conversation in
Show and tell
Replies: 1 comment
-
Oh wow, you managed to get drop events without the need for PR #3378! 😲 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A tricky way to get the full path of local files in a native NiceGUI app — by handling drag & drop events through
pywebview
and itsjs_api
. During the drop, you can sneak access to thepywebviewFullPath
property (thanks to pywebview) for each file being transferred.Source & Example
https://gist.github.com/NewComer00/0e88e60b571aeeaf1bb54aec3bae5be6
The example still works after you freeze the app into a standalone executable using
pyinstaller
Reference:
Demo
Beta Was this translation helpful? Give feedback.
All reactions