Closed
Description
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"),
})
** 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
Labels
No labels