Установите поле пароля pyqt5

pw = QtGui.QLineEdit()
pw.setEchoMode(QtGui.QLineEdit.Password)
Puzzled Plover