title: How can I wait for a window to close before executing a function or opening another window?
body: <p>I am using pyqt and in a funtion, I have </p>
  
  <pre><code>self.window1 = DialogWindow()
  self.window1.show()
  #wait for window to close before executing anything else?
  self.someOtherFuntion()
  </code></pre>