Skip to main content

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.
  • confirm_overwrite: Only for saveFile. If true (default), will prompt the user for a confirmation before overwriting an existing file. On some platforms (mac, kdialog), this overwrite confirmation cannot be disabled.

Acknowledgements

The implementation of filedialpy was inspired by crossfiledialog.

Project details


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.3.1.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

filedialpy-1.3.1-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file filedialpy-1.3.1.tar.gz.

File metadata

  • Download URL: filedialpy-1.3.1.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.9

File hashes

Hashes for filedialpy-1.3.1.tar.gz
Algorithm Hash digest
SHA256 e9213d9b3c4edce11c982e92b17b07100e20c4b1da9b6b822ff1e0a36c53468f
MD5 eb1cd46cce2b2c872d129387fade31f2
BLAKE2b-256 c1c5ecb63676ef10062924bed5e4e9091d45cced77d864fd023dcbf610c7b810

See more details on using hashes here.

File details

Details for the file filedialpy-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: filedialpy-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.9

File hashes

Hashes for filedialpy-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a3a93d5a7ff9c95da87481b492054f70a8fea352ee931e823fc3fc4d2ecc8f6c
MD5 7c3cf91e745289b4f7025eb76629e306
BLAKE2b-256 55ded2d9f96a89d7590044847a97f801f198c66a39badc43d1dfe62095815e32

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page