code: def _setTextStyle(self, style):
      charFormat, blockFormat = self.textStyles[style]
      cursor = self.output.textCursor()
      cursor.setBlockFormat(blockFormat)
      self.output.setCurrentCharFormat(charFormat)
  
imports: import code, sys, traceback
  from ..Qt import QtWidgets, QtGui, QtCore
  from ..functions import mkBrush
  from .CmdInput import CmdInput
label_desc: Use image node_id 6 for calling the ReplWidget obj's underlying member method code with example usage: obj._setTextStyle(style) without return types