napari_track_edit.motile.menus.params_viewer ============================================ .. py:module:: napari_track_edit.motile.menus.params_viewer Classes ------- .. autoapisummary:: napari_track_edit.motile.menus.params_viewer.ParamView napari_track_edit.motile.menus.params_viewer.SolverParamsViewer Module Contents --------------- .. py:class:: ParamView(param_name: str, solver_params: napari_track_edit.motile.backend.SolverParams) Bases: :py:obj:`qtpy.QtWidgets.QWidget` .. py:attribute:: param_name .. py:attribute:: title .. py:attribute:: param_label .. py:attribute:: param_value .. py:method:: update_from_params(params: napari_track_edit.motile.backend.SolverParams) Updates the current parameter value displayed in self.param_value, or hides the whole row if the value is None. :param params: The solver parameters we use to update the UI. This object uses self.param_name to know which value to retrieve. :type params: SolverParams .. py:class:: SolverParamsViewer Bases: :py:obj:`qtpy.QtWidgets.QWidget` Widget for viewing SolverParams. To update for a backend change to SolverParams, emit the new_params signal, which each parameter label will connect to and use to update the UI. .. py:attribute:: new_params .. py:attribute:: solver_params .. py:attribute:: param_categories .. py:method:: _params_group(title: str, param_category: str) -> qtpy.QtWidgets.QGroupBox A helper function to create a group of parameters in the UI. Also connects each parameter to the self.new_params signal so the values can be updated when new parameters are viewed. :param title: The title to put at the top of the group :type title: str :param param_category: A key of self.param_categories used to get the list of parameters in this group. :type param_category: str :returns: A widget containing all the parameters in the group, with static titles and values that can be updated via emitting the self.new_params signal. :rtype: QGroupBox