def METHOD_NAME(self, fnc):
    r"""Decorates tabwidget.add()"""
    def inner(widget, *args, **kwargs):
        if widget in self._docktabs:
            if hasattr(widget, u'set_focus'):
                widget.set_focus()
            return
        return fnc(widget, *args, **kwargs)
    return inner