MCPcopy Create free account
hub / github.com/NSLS2/PyXRF / emit_selection_changed

Method emit_selection_changed

pyxrf/gui_module/useful_widgets.py:936–947  ·  view source on GitHub ↗

Emit `selection_changed` signal that passes the selected range as parameters. Note, that the parameters of the signal are ALWAYS `float`.

(self)

Source from the content-addressed store, hash-verified

934 return self._value_low, self._value_high
935
936 def emit_selection_changed(self):
937 """
938 Emit `selection_changed` signal that passes the selected range as parameters.
939 Note, that the parameters of the signal are ALWAYS `float`.
940 """
941 v_low = self._convert_type(self._value_low)
942 v_high = self._convert_type(self._value_high)
943 logger.debug(
944 f"RangeManager ({self._name}): Emitting the signal 'selection_changed'. "
945 f"Selection: ({v_low}, {v_high})"
946 )
947 self.selection_changed.emit(v_low, v_high, self._name)
948
949
950class ElementSelection(QWidget):

Calls 1

_convert_typeMethod · 0.95

Tested by 1

test_RangeManager_7Function · 0.76