'Save history to a text file in user home directory'

def save_history(self):

    open(self.LOG_PATH, 'w').write('\n'.join([to_text_string(self.combo.itemText(index)) for index in range(self.combo.count())]))
