def add_tab(self, wsname, widget, group, labelname, tabname=None,
                data=None):
        ws = self.get_ws(wsname)
        self.tabcount += 1
        if not tabname:
            tabname = labelname
            if tabname in self.tab:
                tabname = self.tabcount % 'tab%d'

        ws.add_tab(widget, title=labelname)
        self.tab[tabname] = Bunch.Bunch(widget=widget, name=labelname,
                                        tabname=tabname, data=data,
                                        group=group, wsname=wsname)
        return tabname
dataset/ETHPy150Open ejeschke/ginga/ginga/gw/Desktop.py/Desktop.add_tab/swapped operands of `%`