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.

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.2.2.tar.gz (16.0 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.2.2-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for filedialpy-1.2.2.tar.gz
Algorithm Hash digest
SHA256 fb33b2b414f110b2cd761e64a9055b52eab4b34c8b29e5e79e7ce23332ba5ba0
MD5 546cc8c7e45bb7306f42e6567451d8bc
BLAKE2b-256 eb89341e097fc72dd45de064f172110c7b1b6c456547584c760b9a350421b1f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: filedialpy-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 18.1 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.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 27b3f3116088adaefbb99fee5a01d493bcc73d7a99361a3d3bc447b5db932495
MD5 60fa4ed105c29c72791f7dac0b204e2d
BLAKE2b-256 d8bdc685d0d3d87c6cc83f43390ecc06b343b3aeee5b969589ae94d1b94d142f

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