ClusteringControls¶
class ClusteringControls(parent: Optional[QWidget] = None)
Bases: MetaControls
Public Methods¶
- ClusteringControls.collect_parameters() dict¶
Collect current input values from the UI widgets.
Gathers selected values from the database loader, X label, and Y label combo boxes. Defaults to “No Event Database” or None where appropriate.
- Returns:
A dictionary containing the current selections.
- Return type:
- ClusteringControls.on_button_clicked(button_type: str) None¶
Handles button clicks and emits appropriate signals.
- ClusteringControls.on_label_changed() None¶
Handle changes in either the X or Y label combo box.
This function can be extended to trigger updates or validations when a label selection changes.
- ClusteringControls.retranslateUi() None¶
Update translated UI strings.
Typically used in Qt for re-applying translations, currently unused.
- ClusteringControls.update_clusters(clusters: Sequence[Any]) None¶
Update the X and Y label combo boxes with the provided cluster labels.
- Parameters:
clusters (Sequence[Any]) – A sequence of cluster identifiers to populate the combo boxes. Values are stringified before display, so any type is accepted.
- ClusteringControls.update_loaders(loaders: list[str]) None¶
Update the database loader combo box with available loader names.
Preserves the current selection if it’s still valid; otherwise, defaults to the first available loader.