AnyLumino

FolderDialog

Browse the kernel's folders, with fields under the folder list and a confirm button.

The dialog browses the kernel's file system, not the browser's, because the kernel writes and reads the files. With suffix, files with that suffix are listed after the folders, and clicking one calls pick.

Attributes

attributesuffix
= suffix
attributefolderPath | None
= None
attributepath
= ax.Text('', text_type='supporting')
attributefolders
= ax.Stack([], direction='vertical', gap=0, height=220, scrollable=True)
attributeconfirm
= ax.Button(confirm, variant='primary', callbacks=[lambda _button: self.finish()])
attributeprops
= {**self.props, 'width': 480}

Functions

constructor__init__(title, fields, confirm, suffix='') -> None
paramtitlestr
paramfieldsSequence[ax.Widget]
paramconfirmstr
paramsuffixstr
= ''

Returns

None
funcopen_in_last_folder() -> None

Show the dialog in the last browsed folder, or the current directory at the first open.

Returns

None
funcbrowse(folder) -> None
paramfolderPath

Returns

None
funcbrowsed() -> None

Update the fields after the folder changes.

Returns

None
funcpick(path) -> None

Handle a click on a listed file.

parampathPath

Returns

None
funcfinish() -> None

Handle the confirm button.

Returns

None

On this page