FileWidget#
- class caf.space.ui.FileWidget(parent, variable=None, label='', *, browse='open', widths=(20, 20), file_filter=('All files', '*.*'))[source]#
Bases:
FrameTkinter widget for an entry box to select a file.
Methods
__init__(parent[, variable, label, browse, ...])Initialise class.
browse()Open filedialog for selecting a file.
disable()Disable method for class.
enable()Enable method for class.
get()Method to access the entry boxes, path and label (if labelEntry).
set(value)Set the entry box to given value.
- Parameters:
variable (StringVar | None)