def _selected_line_changed ( self ):
        line    = self.selected_line
        control = self.control
        line    = max( 1, min( control.GetLineCount(), line ) ) - 1
        control.MarkerDeleteAll( SELECTED_MARKER )
        control.MarkerAdd( line, SELECTED_MARKER )
        control.GotoLine( line )
        if self.factory.auto_scroll:
            control.ScrollToLine( line - (control.LinesOnScreen() / 2) )

        control.Refresh()

    #---------------------------------------------------------------------------
    #  Handles the 'line' trait being changed:
    #---------------------------------------------------------------------------
Validate the shape of the input parameter 'param'.
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/code_editor.py/SourceEditor._selected_line_changed--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/mixture/base.py/_check_shape