@classmethod
    def xml_for(cls, parts):
        cti = cls()
        cti._defaults['rels'] = CT.OPC_RELATIONSHIPS
        cti._defaults['xml'] = CT.XML
        for part in parts:
            cti._add_content_type(part.partname, part.content_type)
        return cti._xml()
Trigger an immediate relayout and refresh of the tab bar.
dataset/ETHPy150Open scanny/python-pptx/pptx/opc/pkgwriter.py/_ContentTypesItem.xml_for--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/qt_notebook.py/QNotebook._refreshTabBar