def METHOD_NAME(self, fnc):
    r"""Decorates tabwidget.close_all()"""
    def inner(*args, **kwargs):
        while self._docktabs:
            widget, docktab = self._docktabs.popitem()
            docktab.close()
        return fnc(*args, **kwargs)
    return inner