I'm newbie on PyQt5. I just wonder why print method doesn't print whitespace characters when it is connected to QLineEdit's signal
For example:
print("Hello\tWorld\n")
should print the following:
Hello World
But when I run the following code
class window(QWidget):
def __init__(self):
QWidget.__init__(self)
self.setLayout(QVBoxLayout())
self.lineedit = QLineEdit()
self.layout().addWidget(self.lineedit)
self.lineedit.textChanged.connect(print)
self.show()
app = QApplication(sys.argv)
mw = window()
sys.exit(app.exec())
And when I past the same things in the previous code: Hello\tWorld\n , the result is
Hello\tWorld\n
I just wonder what it happens to print method that it doesn't print any whitespace character?
Note: My OS is MacOs Catalina