Skip to main content

Provides the following convenience functions

File Dialogues

Depending on the availability, these dialogues use tk, wxpython, or qt4. If it falls back to tk, FoldersSelector multi-folder selector does not work.

@FileSelector(['py', 'pyc', 'pyx'])
def open_python_file(file_path: str) -> Any:
    # here the file you select is in file_path
    with open(file_path, 'r') as fp:
        # do something
@FilesSelector(['py', 'pyc', 'pyx'])
def open_python_file(file_paths: List[str]) -> Any:
    # here the file you select is in the list file_paths
    for file_path in file_paths:
        with open(file_path, 'r') as fp:
            # do something
@FolderSelector
def open_python_file(folder_path: str) -> Any:
    # here the folder you select is in the list folder_path
    for file_entry in scandir(folder_path):
        # do something
@FoldersSelector
def open_python_file(folder_paths: List[str]) -> Any:
    # here multiple folder paths in the variable
    # do something

Additionally

SaveFolderSelector # selects a single folder for saving
SaveSelector # selects a single file for saving

Release files for uifunc 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uifunc 0.1.6
File Size Uploaded
uifunc-0.1.6.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for uifunc 0.1.6
File Interpreter ABI Platform
uifunc-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 13.1 kB

Release files / uifunc-0.1.6.tar.gz

Download URL uifunc-0.1.6.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8de65178b6c9eb761beb2281db5c8d8e2edf9d6d76266200cda7a3684a333b2b
BLAKE2b-256 checksum
How to use checksums
f2de8548730f3a30c1d6ead62fa42291c0b341de6665b34022b2899c76ee4413
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7rc1

Release files / uifunc-0.1.6-py3-none-any.whl

Download URL uifunc-0.1.6-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c036980bd178d123895da11f8e7e967b07006f9b3d538db72905de9b942e025
BLAKE2b-256 checksum
How to use checksums
cd7fe67341ceab067e247962cf9537d1fa795f9353e3a84a3ee2c36b4b9af6ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7rc1

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page