FileWidget.__init__#

FileWidget.__init__(parent, variable=None, label='', *, browse='open', widths=(20, 20), file_filter=('All files', '*.*'))[source]#

Initialise class.

Parameters:
  • parent (tkinter container widget) – Parent container for storing the widget.

  • label (str, optional) – Text to use for labelling the widget, if empty string (default) does not add a label.

  • userLabel (bool, optional) – Whether the label should be user editable. If false (default) uses label widget otherwise uses entry widget with label as default text.

  • browse (str, optional) – Type of browse to use, either ‘open’ or ‘save’ for files or ‘directory’ to select a directory.

  • variable (StringVar | None)