title: PyQt:Why a popup dialog prevents execution of other code?
body: <p>I am having a little problem with a pop up dialog.I have a combobox,which when the option changes it pops up a dialog with a textedit widget,do some stuff and insert some text in the textedit widget.</p>
  
  <p>This is what i use for the popup:</p>
  
  <pre><code>def function_1(self):
      dialog = QDialog()
      dialog.ui = Ui_Dialog_popup()
      dialog.ui.setupUi(dialog)
      dialog.setAttribute(QtCore.Qt.WA_DeleteOnClose)
      dialog.exec_()
  </code></pre>
  
  <p>I have the pop up gui code made in QtDesignere in a separate py file.</p>
  
  <p>The popup dialog appears,but if the dialog is not closed,nothing else can be executed.Do you know how can I deal with this ? Thanks.</p>