title: PySide Password Field not working
body: <p>I am new to PySide/PyQt, I am creating a dialogue box which accepts username and password. I am facing the error with password text-field.</p>
  
  <p>As per documentation of PySide to create a password text field I am using </p>
  
  <pre><code>self.password_text = QtGui.QLineEdit.setEchoMode(QtGui.QLineEdit.EchoMode.Password)
  </code></pre>
  
  <p>but when I run the application, get the following error.</p>
  
  <pre><code>   self.password_text =QtGui.QLineEdit.echoMode(QtGui.QLineEdit.Password) 
     TypeError: descriptor 'echoMode' requires a 'PySide.QtGui.QLineEdit' object but received a 'PySide.QtGui.QLineEdit.EchoMode
  </code></pre>