(view, row)
Select a `row` in an item view
Select a `row` in an item view
Select a row in an item view
def select_row(view, row):
    """
    Select a `row` in an item view
    """
    selmodel = view.selectionModel()
    selmodel.select(view.model().index(row, 0),
                    QItemSelectionModel.ClearAndSelect)
def select_row ( view , row ) : selmodel = view . selectionModel ( ) selmodel . select ( view . model ( ) . index ( row , 0 ) , QItemSelectionModel . ClearAndSelect )