def select_prev(self, silent=True, delta=1):

        new_idx = self.selected_idx - delta
        if new_idx >= 0 and new_idx <= self.get_number_of_notes():
            self.select(new_idx, silent)

        elif new_idx < 0:
            self.select(0, silent)
Get a temporary file, usable by write_files plugin.
dataset/ETHPy150Open cpbotha/nvpy/nvpy/view.py/NotesList.select_prev--crossover with--dataset/ETHPy150Open openstack/cloudbase-init/cloudbaseinit/tests/plugins/common/userdataplugins/cloudconfigplugins/test_write_files.py/WriteFilesPluginTests._get_tempfile