File dialogs for Windows
pip install windows-filedialogs
Documentation: https://mrthearman.github.io/filedialogs/
Source Code: https://github.com/MrThearMan/filedialogs/
Contributing: https://github.com/MrThearMan/filedialogs/blob/main/CONTRIBUTING.md
Implements easy Windows file dialog functions. Requires the pywin32 module.
Basic use:
from filedialogs import save_file_dialog, open_file_dialog, open_folder_dialog
open_path = open_file_dialog()
if open_path:
with open(open_path, "r") as f:
...
save_path = save_file_dialog()
if save_path:
with open(save_path, "w") as f:
...
open_folder = open_folder_dialog()
if open_folder:
with open(os.path.join(open_folder, ...), "w") as f:
...
Documentation:
open_file_dialog
- title: str - Dialog title. Default is no title.
- directory: str - Directory to open file dialog in. Default is the current working directory.
- default_name: str - Default file name on dialog open. Default is empty.
- default_ext: str - Default file extension on dialog open. Default is no extension.
- ext: list[tuple[str, str | tuple[str, ...]]] - List of available extensions as (description, extension) tuples. Default is ("All files", "*").
- multiselect: bool - Allow multiple files to be selected. Default is False.
Returns: Path to a file to open if multiselect=False. List of the paths to files which should be opened if multiselect=True. None if file open dialog canceled.
Raises: IOError - File open dialog failed.
save_file_dialog
- title: str - Dialog title. Default is no title.
- directory: str - Directory to open file dialog in. Default is the current working directory.
- default_name: str - Default file name on dialog open. Default is empty.
- default_ext: str - Default file extension on dialog open. Default is no extension.
- ext: list[tuple[str, str | tuple[str, ...]]] - List of available extensions as (description, extension) tuples. Default is ("All files", "*").
Returns: Path file should be save to. None if file save dialog canceled.
Raises: IOError - File save dialog failed.
open_folder_dialog
- title: str - Dialog title. Default is no title.
- encoding: str - Encoding for the folder. Default is Latin-1.
Returns: Path to folder. None if no folder selected.
Metadata
Release files for windows_filedialogs 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| windows_filedialogs-0.0.7.tar.gz | 6.0 kB | Without provenance | Details for windows_filedialogs-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| windows_filedialogs-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for windows_filedialogs-0.0.7-py3-none-any.whl |
Total release size: 13.2 kB
Release files / windows_filedialogs-0.0.7.tar.gz
| Download URL | windows_filedialogs-0.0.7.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af4ebb131ac28f4dbee4d9424d31e3225ebff255d05e7a74e0f3996e5458b0c4
|
|
BLAKE2b-256 checksum How to use checksums |
23d699a755fe46cbdbcb00026e6c06140929c844e93b807298d8d076d72747eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.12.0 Windows/11
|
Release files / windows_filedialogs-0.0.7-py3-none-any.whl
| Download URL | windows_filedialogs-0.0.7-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae90391c0158aa8c2ea408c1c3eeb25706e3f9f914a3af3613e8093d545e0e0d
|
|
BLAKE2b-256 checksum How to use checksums |
d7ad04de02c34b8c225ace2c8d549eac24b0554713f6abe8286dba00811709fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.12.0 Windows/11
|
Security for windows_filedialogs 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.