(self, line)
This function is called when selection changes. It extract the selected
        value and calls the callback function.

        Parameters
        ----------
        line : InfiniteLine
            The cutpoint - selection line.
This function is called when selection changes. It extract the selected
        value and calls the callback function.
This function is called when selection changes . It extract the selected value and calls the callback function .
def _on_cut_changed(self, line):
        """
        This function is called when selection changes. It extract the selected
        value and calls the callback function.

        Parameters
        ----------
        line : InfiniteLine
            The cutpoint - selection line.
        """
        # cut changed by means of a cut line over the scree plot.
        value = int(round(line.value()))

        # vertical line can take only int positions
        self._line.setValue(value)

        self._update_horizontal_lines()
        self.callback(value)
def _on_cut_changed ( self , line ) : # cut changed by means of a cut line over the scree plot. value = int ( round ( line . value ( ) ) ) # vertical line can take only int positions self . _line . setValue ( value ) self . _update_horizontal_lines ( ) self . callback ( value )