(self, rowstate)
Set the state for rows.

        Note
        ----
        States for all rows not passed in rowstate is reset to `None`.
Set the state for rows.
Set the state for rows .
def setRowStates(self, rowstate):
        # type: (Dict[int, RowSpec]) -> None
        """
        Set the state for rows.

        Note
        ----
        States for all rows not passed in rowstate is reset to `None`.
        """
        if self.__timer.isActive():
            self.__resetPreview()
        model = self.__previewmodel
        if model is None:
            return

        currstate = self.rowStates()
        newstate = dict.fromkeys(currstate.keys(), None)
        newstate.update(rowstate)
        for row, state in newstate.items():
            self.setStateForRow(row, state)
def setRowStates ( self , rowstate ) : # type: (Dict[int, RowSpec]) -> None if self . __timer . isActive ( ) : self . __resetPreview ( ) model = self . __previewmodel if model is None : return currstate = self . rowStates ( ) newstate = dict . fromkeys ( currstate . keys ( ) , None ) newstate . update ( rowstate ) for row , state in newstate . items ( ) : self . setStateForRow ( row , state )