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= suffixattributefolderPath | None= Noneattributepath= 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='') -> NoneparamtitlestrparamfieldsSequence[ax.Widget]paramconfirmstrparamsuffixstr= ''Returns
Nonefuncopen_in_last_folder() -> NoneShow the dialog in the last browsed folder, or the current directory at the first open.
Returns
Nonefuncbrowse(folder) -> NoneparamfolderPathReturns
Nonefuncbrowsed() -> NoneUpdate the fields after the folder changes.
Returns
Nonefuncpick(path) -> NoneHandle a click on a listed file.
parampathPathReturns
Nonefuncfinish() -> NoneHandle the confirm button.
Returns
None