Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
A Python wrapper for opening files and folders with the native file dialog.
Makes it easy to prompt the user with a native filepicker on all supported platforms.
Currently supports:
Basic API usage:
import crossfiledialog
filename = crossfiledialog.open_file()
multiple_filenames = crossfiledialog.open_multiple()
save_filename = crossfiledialog.save_file()
foldername = crossfiledialog.choose_folder()
crossfiledialog.open_file(title, start_dir, filter) -> str
Open a file selection dialog for selecting a file.
Parameters:
"*.py"
, all files are displayed ending .py)["*.py" "*.md"]
, all files are displayed ending either .py or .md)[["*.py", "*.md"], ["*.txt"]]
,
user can switch between (.py, .md) and (.txt)){"PDF-Files": "*.pdf", "Python Project": ["\*.py", "*.md"]}
)Returns:
crossfiledialog.open_multiple(title, start_dir, filter) -> list[str]
Open a file selection dialog for selecting multiple files.
Parameters:
"*.py"
, all files are displayed ending .py)["*.py" "*.md"]
, all files are displayed ending either .py or .md)[["*.py", "*.md"], ["*.txt"]]
,
user can switch between (.py, .md) and (.txt)){"PDF-Files": "*.pdf", "Python Project": ["\*.py", "*.md"]}
)Returns:
crossfiledialog.save_file(title, start_dir) -> str
Open a save file dialog.
Parameters:
Returns:
crossfiledialog.save_file(title, start_dir) -> str
Open a folder selection dialog.
Parameters:
Returns:
Licensed under the GNU GPL 3.0
FAQs
A Python wrapper for opening files and folders with the native file dialog.
We found that crossfiledialog demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.