'Select previous row in list widget.'

def previous_row(self):

    if (self.mode == self.SYMBOL_MODE):
        self.select_row((-1))
        return
    prev_row = (self.current_row() - 1)
    if (prev_row >= 0):
        title = self.list.item(prev_row).text()
    else:
        title = ''
    if ((prev_row == 0) and ('</b></big><br>' in title)):
        self.list.scrollToTop()
    elif ('</b></big><br>' in title):
        self.select_row((-2))
    else:
        self.select_row((-1))
