code: def qteChangeModeValue(self, mode: str, value):
          
          # Search through the list for ``mode``.
          for idx, item in enumerate(self._qteModeList):
              if item[0] == mode:
                  # Update the displayed value in the label.
                  label = item[2]
                  label.setText(value)
  
                  # Overwrite the old data record with the updated one
                  # and adjust the widths of the modes.
                  self._qteModeList[idx] = (mode, value, label)
                  self._qteUpdateLabelWidths()
                  return True
          return False
docs: Change the value of ``mode`` to ``value``.
  
          If ``mode`` does not exist then nothing happens and the method
          returns **False**, otherwise **True**.
  
          |Args|
  
          * ``mode`` (**str**): mode of mode.
          * ``value`` (**object**): value of mode.
  
          |Returns|
  
          * **bool**: **True** if the item was removed and **False** if there
            was an error (most likely ``mode`` does not exist).
  
          |Raises|
  
          * **QtmacsArgumentError** if at least one argument has an invalid type.