Help me ! #1904
Help me !
#1904
-
Beta Was this translation helpful? Give feedback.
Answered by
freakboy3742
Apr 26, 2023
Replies: 1 comment 1 reply
-
Why would it be a bool? You're opening a file, so the thing you want to get back is a File (or some sort of file-related object). In this case, you also need to If you want an example of using a file dialog, see the dialogs example in the Toga codebase. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
YTLoudYN
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why would it be a bool? You're opening a file, so the thing you want to get back is a File (or some sort of file-related object).
In this case, you also need to
await
the dialog -await window.open_file_dialog(...)
to get the file; you'll receive a Pathlib object pointing to the selected file.If you want an example of using a file dialog, see the dialogs example in the Toga codebase.