diff --git a/scripts/Muon/GUI/Common/muon_context.py b/scripts/Muon/GUI/Common/muon_context.py index 7e7cb89b3db3fd96da9e15afb3a922356c632828..476e1cacd7026ca1ef6754a4cec01e522a64b932 100644 --- a/scripts/Muon/GUI/Common/muon_context.py +++ b/scripts/Muon/GUI/Common/muon_context.py @@ -11,4 +11,4 @@ class MuonContext(object): @data_context.setter def data_context(self, value): - self._data_context = value \ No newline at end of file + self._data_context = value diff --git a/scripts/Muon/GUI/Common/pairing_table_widget/pairing_table_widget_presenter.py b/scripts/Muon/GUI/Common/pairing_table_widget/pairing_table_widget_presenter.py index 3fe86fa99343ada0a5bfdfaddb334c9bf82c77f7..d4663e36a1d1b472082c45bc154f10fc009be13b 100644 --- a/scripts/Muon/GUI/Common/pairing_table_widget/pairing_table_widget_presenter.py +++ b/scripts/Muon/GUI/Common/pairing_table_widget/pairing_table_widget_presenter.py @@ -8,6 +8,7 @@ from Muon.GUI.Common.observer_pattern import Observable pair_columns = ['pair_name', 'group_1', 'group_2', 'alpha'] + class PairingTablePresenter(object): def __init__(self, view, model): @@ -67,12 +68,9 @@ class PairingTablePresenter(object): if not self.validate_alpha(changed_item): update_model = False else: - self._view.pairing_table.blockSignals(True) rounded_item = '{:.3f}'.format(float(changed_item)) if '{:.3f}'.format(float(changed_item)) != '0.000'\ else '{:.3g}'.format(float(changed_item)) - - self._view.pairing_table.item(row, col).setText(rounded_item) - self._view.pairing_table.blockSignals(False) + table[row][col] = rounded_item if update_model: self.update_model_from_view(table)