quicknxs.ui package

Qt UI files.

Submodules

quicknxs.ui.binningtype_combobox module

class quicknxs.ui.binningtype_combobox.BinningTypeSelection(on_change_handler=None, row=None, parent=None)[source]

Bases: QComboBox

Combo box for binning types.

Initialize the BinningTypeSelection combo box.

Parameters:
  • on_change_handler (Optional[Callable]) – A function to be called when the selection changes. It should accept two arguments: the new index and the row identifier.

  • row (Optional[int]) – An identifier for the row associated with this combo box, useful when the combo box is used in a table or list context.

  • parent (Optional[QWidget]) – The parent widget.

quicknxs.ui.compare_plots module

class quicknxs.ui.compare_plots.CompareDialog(*args, **kwargs)[source]

Bases: QDialog

A simple dialog window with a CompareWidget.

class quicknxs.ui.compare_plots.CompareWidget(parent)[source]

Bases: QWidget

Widget to compare different reflectivities.

changing_table = False
clear_item()[source]

Remove all current plotted data.

clear_plot()[source]

Remove all current plotted data.

draw()[source]

Draw data.

edit_cell(row, column)[source]

Cell editing call-back. Deal with color picking.

open_file()[source]

Show Open-File dialog.

read_file(file_path: str)[source]

Read a data file.

refl_preview(checked=True)[source]

Call-back method for when the user toggles the preview check box.

update_preview()[source]

Update the preview data.