(self, orientation, values)
Update/set multiple header sections/roles at once.

        Parameters
        ----------
        orientation : Qt.Orientation
        values : Dict[int, Dict[Qt.ItemDataRole, Any]]
            A mapping of section indices to mapping of role to values.
            e.g. `{1: {Qt.DisplayRole: "A"}}` sets the display text to "A"
Update/set multiple header sections/roles at once.
Update / set multiple header sections / roles at once .
def updateHeaderData(self, orientation, values):
        # type: (Qt.Orientation, Dict[int, Dict[Qt.ItemDataRole, Any]]) -> None
        """
        Update/set multiple header sections/roles at once.

        Parameters
        ----------
        orientation : Qt.Orientation
        values : Dict[int, Dict[Qt.ItemDataRole, Any]]
            A mapping of section indices to mapping of role to values.
            e.g. `{1: {Qt.DisplayRole: "A"}}` sets the display text to "A"
        """
        data = self.__headerData[orientation]
        if orientation == Qt.Horizontal:
            length = self.__colCount
        else:
            length = self.__rowCount
        sections = []
        for section, itemdata in values.items():
            if 0 <= section < length:
                data[section].update(itemdata)
                sections.append(section)
        if not sections:
            return

        first = min(sections)
        last = max(sections)

        self.headerDataChanged.emit(orientation, first, last)
def updateHeaderData ( self , orientation , values ) : # type: (Qt.Orientation, Dict[int, Dict[Qt.ItemDataRole, Any]]) -> None data = self . __headerData [ orientation ] if orientation == Qt . Horizontal : length = self . __colCount else : length = self . __rowCount sections = [ ] for section , itemdata in values . items ( ) : if 0 <= section < length : data [ section ] . update ( itemdata ) sections . append ( section ) if not sections : return first = min ( sections ) last = max ( sections ) self . headerDataChanged . emit ( orientation , first , last )