Builder classes#

Builder classes manage the creation of widgets and layout for the respective frames.

The builders sub-package includes build configs and builders for all GUI frame classes.

The builders to create and arrange the widgets have been separated simply for improved code organisation. They will create the user interface “shells” without any connections and functionality.

class pydidas.gui.frames.builders.UtilitiesFrameBuilder#

Create all widgets and initialize their state.

Parameters:

self (pydidas.gui.DefineScanFrame) – The DefineScanFrame instance.

classmethod build_frame(frame: BaseFrame)#

Create all widgets for the frame and place them in the layout.

Parameters:

frame (BaseFrame) – The frame to be populated.

class pydidas.gui.frames.builders.WorkflowEditFrameBuilder#

Builder for the WorkflowEditFrame.

classmethod populate_frame(frame: BaseFrame)#

Build the frame by creating all required widgets and placing them in the layout.

Parameters:

frame (BaseFrame) – The frame instance.

pydidas.gui.frames.builders.ccf_param_widget_config(param_key)#

Get Formatting options for create_param_widget instances.

Parameters:

param_key (str) – The reference key for Parameter.

Returns:

The keyword dictionary to be passed to the ParamWidget creation.

Return type:

dict

pydidas.gui.frames.builders.create_splitter(filesystem_browser: QWidget, data_viewer: QWidget, frame_width: int) QSplitter#

Create a splitter widget for the frame.

Parameters:
  • filesystem_browser (QtWidgets.QWidget) – The filesystem browser widget.

  • data_viewer (QtWidgets.QWidget) – The data viewer widget.

  • frame_width (int) – The width of the frame.

Returns:

The splitter widget.

Return type:

QtWidgets.QSplitter

pydidas.gui.frames.builders.get_WorkflowTestFrame_build_config(frame: BaseFrame) list[list[str | tuple[str] | dict[str, Any]]]#

Return the build configuration for the WorkflowTestFrame.

Parameters:

frame (BaseFrame) – The WorkflowTestFrame instance.

Returns:

The build configuration in form of a list. Each list entry consists of the widget creation method name, the method arguments and the method

Return type:

list[list[str, tuple[str], dict]]