def SelectRow(self, row):
        self.selection = [row]
        
        # Emit selection event
        event = CommitListEvent(EVT_COMMITLIST_SELECT_type, self.GetId())
        event.SetCurrentRow(row)
        event.SetSelection(self.selection)
        self.ProcessEvent(event)
        self.OnSelectionChanged(row, self.selection)
        
        # Scroll to position
        start_col, start_row = self.GetViewStart()
        size = self.GetClientSize()
        height = size.GetHeight() / LINH
        
        if row < start_row or row > start_row+height-1:
            self.Scroll(start_col, max(2-row, 0))
        
        self.Refresh()

    # Virtual event handlers
dataset/ETHPy150Open gyim/stupidgit/stupidgit_gui/CommitList.py/CommitList.SelectRow/swapped operands of `-`