title: How to wait for user input in PyQt with Line Edit?
body: <p>I'm working on a project of "wrapping" a program I built with PyQt GUI and I'm stuck with a basic thing.
  I want the program to stop procceeding with the code and wait for my input, just like <code>raw_input()</code>. Here is my code:</p>
  
  <pre><code>from PyQt4.QtGui import *
  from PyQt4.QtCore import *
  import sys
  
  
  class myWidget(QDialog):
  
      def __init__(self,parent=None):
          super(myWidget, self).__init__(parent)
  
          self.lineEdit = QLineEdit()
          self.textBrowser = QTextBrowser()
          self.top_btn = QPushButton("Ask me")
          self.bottom_btn = QPushButton("disable")
          layout = QVBoxLayout()
          layout.addWidget(self.textBrowser)
          layout.addWidget(self.lineEdit)
          layout.addWidget(self.top_btn)
          layout.addWidget(self.bottom_btn)
          self.setLayout(layout)
          self.lineEdit.setDisabled(True)
          self.lineEdit.clear()
          self.connect(self.top_btn, SIGNAL("clicked()"), self.inputFunc)
          self.connect(self.bottom_btn, SIGNAL("clicked()"), self.disableLine)
  
  
  
      def inputFunc(self):
          self.lineEdit.clear()
          self.lineEdit.setDisabled(False)
          self.textBrowser.setText("Welcome to #1 button. what do you want to do?")
          userInput = self.lineEdit.text()
          if userInput == "anything":
              self.textBrowser.append("Ok i will leave you alone")
              exit()
          else:
              self.textBrowser.append("say what?")
  
  
  
      def disableLine(self):
          self.lineEdit.clear()
          self.textBrowser.append("Line edit is disabled")
          self.lineEdit.setDisabled(True)
  
  
  app = QApplication(sys.argv)
  form = myWidget()
  form.show()
  app.exec_()
  </code></pre>
  
  <p>As you can see, there is a Line Edit and its variable. But it doesn't wait for my input, it proceed with the code and of course it doesn't let me to change the result of my "if" statement.
  How do I pause the code and wait for the user input so my "if" statement result will be changed just like <code>raw_input()</code>? (if possible, without adding any new layouts.)</p>
  
  <p>Thank you.</p>