I am working on a GUI developed via PyQt and Qt4. Within my GUI I have a QTextEdit that has various data written to. Is there a way in which I can manipulate the color of one wo
The answer of Nejat works for me by replacing ".append()" with "+=" :
redText = "" redText += "I want this text red" redText += "" self.myTextEdit.write(redText) blackText = "" blackText += "And this text black") blackText += "" self.myTextEdit.append(blackText)