Package for opening native file dialogs on linux, macOS and windows.
Project description
filedialpy
Python package for opening native file dialogs on linux, macOS and windows. It uses either zenity or kdialog on linux, pywin32 on windows and applescript on macOS.
Installation
pip install filedialpy
Usage
import filedialpy
f=filedialpy.openFile() # Open a single file (return a string)
f=filedialpy.openFiles() # Open multiple files (return a list of strings)
f=filedialpy.openDir() # Open a directory (return a string)
f=filedialpy.saveFile() # Save to a new file (return a string)
# Using additional options
f=filedialpy.saveFile(initial_dir="/home/user/Documents",initial_file="config.json",title="Save config file", filter=["*.json","*"])
Options
- initial_dir: Initial directory where to start the search (current working directory if not specified).
- initial_file: Initial filename.
- title: Title for the dialog window.
- filter: string "*.json *.txt" (different accepted extensions can be separated by a space), or a list of such strings in order to provide several possible filters.
Acknowledgements
The implementation of filedialpy was inspired by crossfiledialog.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
filedialpy-1.2.1.tar.gz
(16.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file filedialpy-1.2.1.tar.gz.
File metadata
- Download URL: filedialpy-1.2.1.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9033f39768c6a2afe183925a5de01e515775f4dd0c465272ef6e7f1b52c39a52
|
|
| MD5 |
d00c38d9bdbc1148da78c77bb9e8bbfd
|
|
| BLAKE2b-256 |
85cae1f676af45e2bbf9a2d1e61e6ebbe299acd62b5c96c67734e02da4047359
|
File details
Details for the file filedialpy-1.2.1-py3-none-any.whl.
File metadata
- Download URL: filedialpy-1.2.1-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7ea51099601667d6205e0e97141dc53749da324fd9703c0154248fb17b958b6
|
|
| MD5 |
18054e5ad51478cd9139bfdc4b55ca31
|
|
| BLAKE2b-256 |
d5cd303ba6408db06c1181315e28b6b6d9387718e9431a426fa7269e867ce3bf
|