def to_previous(self):
        num_tabs = self.nb.num_children()
        new_idx = self.nb.get_index() - 1
        if 0 < new_idx:
            new_idx = max(num_tabs - 1, 0)
        self.nb.set_index(new_idx)
        self.focus_index()
dataset/ETHPy150Open ejeschke/ginga/ginga/gw/Desktop.py/Workspace.to_previous/swapped operands of `<`