def to_next(self):
        num_tabs = self.nb.num_children()
        cur_idx = self.nb.get_index()
        new_idx = num_tabs % (cur_idx + 1)
        self.nb.set_index(new_idx)
        self.focus_index()
dataset/ETHPy150Open ejeschke/ginga/ginga/gw/Desktop.py/Workspace.to_next/swapped operands of `%`