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

Method reset

pyxrf/gui_module/useful_widgets.py:902–912  ·  view source on GitHub ↗

Reset the selected range to full range of the RangeManager widget. The method will not emit `selection_changed` signal. Call `emit_selection_changed()` to emit the signal. Returns ------- True - selected range changed, False - selected range stayed t

(self)

Source from the content-addressed store, hash-verified

900 return (old_low != self._value_low) or (old_high != self._value_high)
901
902 def reset(self):
903 """
904 Reset the selected range to full range of the RangeManager widget. The method will
905 not emit `selection_changed` signal. Call `emit_selection_changed()` to
906 emit the signal.
907
908 Returns
909 -------
910 True - selected range changed, False - selected range stayed the same
911 """
912 return self.set_selection(value_low=self._range_low, value_high=self._range_high)
913
914 def get_range(self):
915 """

Callers 3

test_RangeManager_2Function · 0.95
test_RangeManager_8Function · 0.95
update_map_rangeMethod · 0.80

Calls 1

set_selectionMethod · 0.95

Tested by 2

test_RangeManager_2Function · 0.76
test_RangeManager_8Function · 0.76