csc.view.FileDialogManager

class csc.view.FileDialogManager

FileDialogManager class

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

show_folder_dialog(self, arg0, arg1)

Shows a folder dialog

show_open_file_dialog(self, title, path, ...)

Shows an open file dialog

show_save_file_dialog(self, title, path, ...)

Shows a save file dialog

__annotations__ = {}
__init__(*args, **kwargs)
__module__ = 'csc.view'
show_folder_dialog(self: csc.view.FileDialogManager, arg0: str, arg1: Callable) None

Shows a folder dialog

Parameters:
  • arg0 (str) – The title of the dialog

  • arg1 (Callable[List[str]]) – The handler of the dialog

show_open_file_dialog(self: csc.view.FileDialogManager, title: str, path: str, filters: list[str], handler: Callable) None

Shows an open file dialog

Parameters:
  • arg0 (str) – The title of the dialog

  • arg1 (str) – The path of the dialog

  • arg2 (List[str]) – The list of filters of the dialog

  • arg3 (Callable[List[str]]) – The handler of the dialog

show_save_file_dialog(self: csc.view.FileDialogManager, title: str, path: str, filters: list[str], handler: Callable) None

Shows a save file dialog

Parameters:
  • arg0 (str) – The title of the dialog

  • arg1 (str) – The path of the dialog

  • arg2 (List[str]) – The list of filters of the dialog

  • arg3 (Callable[List[str]]) – The handler of the dialog