password line edit in pyqt5 code example Example: pyqt5 line edit password input editor = QLineEdit() editor.setEchoMode(QLineEdit.Password)