Skip to content

PathTag enhancement #17

Closed
Closed
@e3rd

Description

@e3rd

The PathTag wraps over pathlib.Path. It has multiple attribute that store the information for UI, whether the UI should pick one or multiple paths.

In the GUI interface, it works well. Note the button that open a basic (and ugly) file picker.

m = run(interface="gui")
out = m.form({
    "File 1": PathTag("/tmp"),
})

Image

** Multiple attributes **

The PathTag should have file_exist and is_dir attributes that turns on filtering for file picker.

** Textual support **

The same should work for the textual interface too. Currently, it behaves just any other str. Which is sufficient but poor.

m = run(interface="tui")
out = m.form({
    "File 1": PathTag("/tmp"),
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions